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

21 lines
588 B
C#
Raw Normal View History

2021-09-10 11:28:57 +05:00
using AsbCloudApp.Data;
using AsbCloudApp.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace AsbCloudWebApi.Controllers
{
[Route("api/admin/cluster")]
[ApiController]
[Authorize]
public class AdminClusterController : CrudController<ClusterDto, ICrudService<ClusterDto>>
{
public AdminClusterController(ICrudService<ClusterDto> service)
:base(service)
{
2021-12-21 11:52:53 +05:00
service.Includes.Add(nameof(ClusterDto.Wells));
service.Includes.Add(nameof(ClusterDto.Deposit));
2021-09-10 11:28:57 +05:00
}
}
}