diff --git a/AsbCloudApp/Services/IProcessMapRepository.cs b/AsbCloudApp/Services/IProcessMapRepository.cs
index 757171fc..0469b2df 100644
--- a/AsbCloudApp/Services/IProcessMapRepository.cs
+++ b/AsbCloudApp/Services/IProcessMapRepository.cs
@@ -29,7 +29,7 @@ namespace AsbCloudApp.Services
///
///
///
- Task?> GetByRequesProcessMaplAsync(List request, CancellationToken token);
+ Task?> GetByRequesProcessMaplAsync(IEnumerable request, CancellationToken token);
}
#nullable disable
}
\ No newline at end of file
diff --git a/AsbCloudInfrastructure/Repository/ProcessMapRepository.cs b/AsbCloudInfrastructure/Repository/ProcessMapRepository.cs
index c07cc275..fda7fbb0 100644
--- a/AsbCloudInfrastructure/Repository/ProcessMapRepository.cs
+++ b/AsbCloudInfrastructure/Repository/ProcessMapRepository.cs
@@ -49,7 +49,7 @@ namespace AsbCloudInfrastructure.Repository
return dtos;
}
- public async Task?> GetByRequesProcessMaplAsync(List request, CancellationToken token)
+ public async Task?> GetByRequesProcessMaplAsync(IEnumerable request, CancellationToken token)
{
var entities = await BuildQuery(request)
.ToListAsync(token)
diff --git a/AsbCloudInfrastructure/Repository/WellCompositeRepository.cs b/AsbCloudInfrastructure/Repository/WellCompositeRepository.cs
index d2946247..cbbf0e77 100644
--- a/AsbCloudInfrastructure/Repository/WellCompositeRepository.cs
+++ b/AsbCloudInfrastructure/Repository/WellCompositeRepository.cs
@@ -54,14 +54,14 @@ namespace AsbCloudInfrastructure.Repository
public async Task?> GetCompositeProcessMap(int idWell, CancellationToken token)
{
var dtos = await GetAsync(idWell, token);
- var idWells = dtos.Select(c => c.IdWellSrc);
- var idWellSectionTypes = dtos.Select(c => c.IdWellSectionType);
-
- var request = new List
+ var request = new List(dtos.Count());
+ foreach(var dto in dtos)
{
- new ProcessMapRequest {
- IdWell = idWell
- }
+ request.Add(new ProcessMapRequest
+ {
+ IdWell = dto.IdWellSrc,
+ IdWellSectionTypes = dto.IdWellSectionType
+ });
};
var processMap = (await processMapRepository.GetByRequesProcessMaplAsync(request, token));