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 EnsureTimestamps(CancellationToken token) { await ((IWellService)service).EnshureTimezonesIsSetAsync(token); return Ok(); } } }