From 97df21c58bd1f1103e218cd319b45be56d9afe9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Tue, 12 Oct 2021 10:31:17 +0500 Subject: [PATCH] Remove WellService.GetOperationsAsync() redundant method --- AsbCloudApp/Services/IWellService.cs | 1 - AsbCloudInfrastructure/Services/WellService.cs | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/AsbCloudApp/Services/IWellService.cs b/AsbCloudApp/Services/IWellService.cs index 8e6db9c4..cfa9ec19 100644 --- a/AsbCloudApp/Services/IWellService.cs +++ b/AsbCloudApp/Services/IWellService.cs @@ -10,7 +10,6 @@ namespace AsbCloudApp.Services Task> GetWellsByCompanyAsync(int idCompany, CancellationToken token); Task> GetTransmittingWellsAsync(int idCompany, CancellationToken token); Task IsCompanyInvolvedInWellAsync(int idCompany, int idWell, CancellationToken token); - Task> GetOperationsAsync(int idWell, CancellationToken token); Task GetWellCaptionByIdAsync(int idWell, CancellationToken token); Task> GetCompaniesAsync(int idWell, CancellationToken token); Task GetAsync(int idWell, CancellationToken token); diff --git a/AsbCloudInfrastructure/Services/WellService.cs b/AsbCloudInfrastructure/Services/WellService.cs index a6382be0..490a8d41 100644 --- a/AsbCloudInfrastructure/Services/WellService.cs +++ b/AsbCloudInfrastructure/Services/WellService.cs @@ -52,18 +52,6 @@ namespace AsbCloudInfrastructure.Services => await cacheRelationCompaniesWells.ContainsAsync(r => r.IdWell == idWell && r.IdCompany == idCompany, token).ConfigureAwait(false); - public async Task> GetOperationsAsync(int idWell, CancellationToken token) - { - var entities = await db.WellOperations.Where(o => o.IdWell == idWell) - .AsNoTracking() - .ToListAsync(token) - .ConfigureAwait(false); - - var dtos = entities.Adapt(); - - return dtos; - } - private static WellDto From(Well well) { var wellDto = new WellDto