diff --git a/AsbCloudApp/Repositories/IProcessMapRepository.cs b/AsbCloudApp/Repositories/IProcessMapRepository.cs
index 10710d9a..f6dbe6b4 100644
--- a/AsbCloudApp/Repositories/IProcessMapRepository.cs
+++ b/AsbCloudApp/Repositories/IProcessMapRepository.cs
@@ -9,12 +9,12 @@ using System.Threading.Tasks;
namespace AsbCloudApp.Repositories
{
///
- /// РТК
+ /// РТК-план
///
public interface IProcessMapPlanRepository : IRepositoryWellRelated
{
///
- /// Получить параметры бурения начиная с даты.
+ /// Получить РТК-план начиная с даты.
///
///
///
@@ -24,7 +24,7 @@ namespace AsbCloudApp.Repositories
DateTime? updateFrom, CancellationToken token = default);
///
- /// Получить параметры бурения
+ /// Получить РТК-план
///
///
///
@@ -33,11 +33,11 @@ namespace AsbCloudApp.Repositories
CancellationToken token);
///
- /// Удалить РТК
+ /// Удалить РТК-план по скважине
///
///
///
///
- Task RemoveRangeAsync(int idWell, CancellationToken cancellationToken);
+ Task RemoveByWellAsync(int idWell, CancellationToken cancellationToken);
}
}
\ No newline at end of file
diff --git a/AsbCloudInfrastructure/Repository/ProcessMapRepository.cs b/AsbCloudInfrastructure/Repository/ProcessMapRepository.cs
index 43d11179..6597210b 100644
--- a/AsbCloudInfrastructure/Repository/ProcessMapRepository.cs
+++ b/AsbCloudInfrastructure/Repository/ProcessMapRepository.cs
@@ -60,11 +60,11 @@ namespace AsbCloudInfrastructure.Repository
return dtos;
}
- public Task RemoveRangeAsync(int idWell, CancellationToken cancellationToken)
+ public Task RemoveByWellAsync(int idWell, CancellationToken cancellationToken)
{
- var entitites = dbContext.ProcessMap.Where(x => x.IdWell == idWell);
+ var query = dbContext.ProcessMap.Where(x => x.IdWell == idWell);
- dbContext.ProcessMap.RemoveRange(entitites);
+ dbContext.ProcessMap.RemoveRange(query);
return dbContext.SaveChangesAsync(cancellationToken);
}
diff --git a/AsbCloudInfrastructure/Services/ProcessMap/ProcessMapPlanImportService.cs b/AsbCloudInfrastructure/Services/ProcessMap/ProcessMapPlanImportService.cs
index 06551f24..2b4467af 100644
--- a/AsbCloudInfrastructure/Services/ProcessMap/ProcessMapPlanImportService.cs
+++ b/AsbCloudInfrastructure/Services/ProcessMap/ProcessMapPlanImportService.cs
@@ -62,7 +62,7 @@ public class ProcessMapPlanImportService : IProcessMapPlanImportService
var processPlanMaps = ParseWorkBook(workBook);
if (deleteProcessMapPlansBeforeImport)
- await processMapPlanRepository.RemoveRangeAsync(idWell, cancellationToken);
+ await processMapPlanRepository.RemoveByWellAsync(idWell, cancellationToken);
foreach (var processPlanMap in processPlanMaps)
{