using AsbCloudApp.Data;
using AsbCloudApp.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers
{
///
/// Редактор скважин для админки
///
[Route("api/admin/well")]
[ApiController]
[Authorize]
public class AdminWellController : CrudController>
{
public AdminWellController(IWellService service)
: base(service)
{ }
[HttpPost("EnshureTimezonesIsSet")]
[Permission]
public async Task EnshureTimezonesIsSet(CancellationToken token)
{
await ((IWellService)service).EnshureTimezonesIsSetAsync(token);
return Ok();
}
}
}