2021-08-02 14:45:13 +05:00
|
|
|
|
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)
|
2021-08-09 15:41:42 +05:00
|
|
|
|
: base(service)
|
2021-08-02 14:45:13 +05:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("")]
|
|
|
|
|
public virtual IActionResult GetAll()
|
|
|
|
|
{
|
|
|
|
|
var result = service.GetAll();
|
|
|
|
|
return Ok(result);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|