forked from ddrilling/AsbCloudServer
33 lines
756 B
C#
33 lines
756 B
C#
using AsbCloudApp.Data;
|
|
using AsbCloudApp.Services;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|