2021-09-10 11:28:57 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using AsbCloudApp.Services;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudWebApi.Controllers
|
|
|
|
|
{
|
|
|
|
|
[Route("api/admin/company")]
|
|
|
|
|
[ApiController]
|
|
|
|
|
[Authorize]
|
|
|
|
|
public class AdminCompanyController : CrudController<CompanyDto, ICrudService<CompanyDto>>
|
|
|
|
|
{
|
|
|
|
|
public AdminCompanyController(ICrudService<CompanyDto> service)
|
|
|
|
|
: base(service)
|
|
|
|
|
{
|
2021-12-22 15:58:49 +05:00
|
|
|
|
service.Includes.Add("CompanyType");
|
2021-09-10 11:28:57 +05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|