diff --git a/AsbCloudWebApi/Controllers/ServiceOperationController.cs b/AsbCloudWebApi/Controllers/DrillingQualityController.cs similarity index 59% rename from AsbCloudWebApi/Controllers/ServiceOperationController.cs rename to AsbCloudWebApi/Controllers/DrillingQualityController.cs index 8221cd8f..9f4470f1 100644 --- a/AsbCloudWebApi/Controllers/ServiceOperationController.cs +++ b/AsbCloudWebApi/Controllers/DrillingQualityController.cs @@ -1,43 +1,27 @@ using AsbCloudApp.Data; +using AsbCloudApp.Repositories; +using AsbCloudApp.Requests; using AsbCloudApp.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; using System.Threading; using System.Threading.Tasks; -using AsbCloudApp.Services.WellReport; -using Microsoft.AspNetCore.Http; -using System; -using AsbCloudApp.Repositories; -using System.Linq; -using AsbCloudApp.Requests; -using AsbCloudInfrastructure.Services; namespace AsbCloudWebApi.Controllers; /// -/// +/// Контроллер для построения страницы "Качество" /// [Route("api/[controller]")] [ApiController] -//[Authorize] -public class ServiceOperationController : ControllerBase +[Authorize] +public class DrillingQualityController : ControllerBase { - private readonly IWellService wellService; - private readonly IDataSaubStatRepository dataSaubStatRepository; - private readonly ITelemetryService telemetryService; private readonly IDataSaubStatDrillingQualityService dataSaubStatDrillingQualityService; - public ServiceOperationController( - IWellService wellService, - ITelemetryService telemetryService, - IDataSaubStatDrillingQualityService dataSaubStatDrillingQualityService, - IDataSaubStatRepository dataSaubStatRepository) - { - this.wellService = wellService; - this.dataSaubStatRepository = dataSaubStatRepository; - this.telemetryService = telemetryService; + public DrillingQualityController(IDataSaubStatDrillingQualityService dataSaubStatDrillingQualityService) + { this.dataSaubStatDrillingQualityService = dataSaubStatDrillingQualityService; }