DD.WellWorkover.Cloud/AsbCloudWebApi/Controllers/WellSectionController.cs
2021-08-09 15:41:42 +05:00

28 lines
627 B
C#

using AsbCloudApp.Data;
using AsbCloudApp.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace AsbCloudWebApi.Controllers
{
[Route("api/well/{idWell}")]
[ApiController]
[Authorize]
public class WellSectionController : CrudController<WellSectionDto>
{
public WellSectionController(ICrudService<WellSectionDto> service)
: base(service)
{
}
[HttpGet]
[Route("")]
public virtual IActionResult GetAll()
{
var result = service.GetAll();
return Ok(result);
}
}
}