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

28 lines
627 B
C#
Raw Normal View History

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