DD.WellWorkover.Cloud/AsbCloudWebApi/Controllers/AdminCompanyController.cs

20 lines
516 B
C#

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)
{
service.Includes.Add("CompanyType");
}
}
}