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

28 lines
756 B
C#
Raw Normal View History

2021-09-10 11:28:57 +05:00
using AsbCloudApp.Data;
using AsbCloudApp.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading;
using System.Threading.Tasks;
2021-09-10 11:28:57 +05:00
namespace AsbCloudWebApi.Controllers
{
[Route("api/admin/well")]
[ApiController]
[Authorize]
public class AdminWellController : CrudController<WellDto, ICrudService<WellDto>>
{
2021-12-21 11:52:53 +05:00
public AdminWellController(IWellService service)
2022-04-11 18:00:34 +05:00
: base(service)
{}
2021-12-21 11:52:53 +05:00
[HttpPost("EnshureTimezonesIsSet")]
[Permission]
public async Task<IActionResult> EnsureTimestamps(CancellationToken token)
{
await ((IWellService)service).EnshureTimezonesIsSetAsync(token);
return Ok();
}
2021-09-10 11:28:57 +05:00
}
}