forked from ddrilling/AsbCloudServer
21 lines
517 B
C#
21 lines
517 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)
|
|
{
|
|
}
|
|
}
|