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

22 lines
571 B
C#

using AsbCloudApp.Data;
using AsbCloudApp.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace AsbCloudWebApi.Controllers
{
/// <summary>
/// Редактор компаний для админки
/// </summary>
[Route("api/admin/company")]
[ApiController]
[Authorize]
public class AdminCompanyController : CrudController<CompanyDto, ICrudRepository<CompanyDto>>
{
public AdminCompanyController(ICrudRepository<CompanyDto> service)
: base(service)
{
}
}
}