forked from ddrilling/AsbCloudServer
28 lines
711 B
C#
28 lines
711 B
C#
using AsbCloudApp.Data;
|
|
using AsbCloudApp.Services;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace AsbCloudWebApi.Controllers
|
|
{
|
|
[Route("api/admin/well")]
|
|
[ApiController]
|
|
[Authorize]
|
|
public class AdminWellController : CrudController<WellDto, ICrudService<WellDto>>
|
|
{
|
|
public AdminWellController(IWellService service)
|
|
:base(service)
|
|
{
|
|
service.Includes.Add("Telemetry");
|
|
}
|
|
|
|
[HttpPost("EnshureTimezonesIsSet")]
|
|
[Permission]
|
|
public IActionResult EnsureTimestamps()
|
|
{
|
|
((IWellService)service).EnshureTimezonesIsSet();
|
|
return Ok();
|
|
}
|
|
}
|
|
}
|