diff --git a/AsbCloudInfrastructure/Services/ClusterService.cs b/AsbCloudInfrastructure/Services/ClusterService.cs index 141ac3b4..d98fca2d 100644 --- a/AsbCloudInfrastructure/Services/ClusterService.cs +++ b/AsbCloudInfrastructure/Services/ClusterService.cs @@ -137,16 +137,13 @@ namespace AsbCloudInfrastructure.Services Latitude = gCluster.Key.Latitude, Longitude = gCluster.Key.Longitude, Description = "", - Wells = gCluster.Select(well => new WellDto - { - Id = well.Id, - Caption = well.Caption, - Latitude = well.Latitude, - Longitude = well.Longitude, - WellType = well.WellType?.Caption, - LastTelemetryDate = wellService.GetLastTelemetryDate(well.Id), - Cluster = gCluster.Key.Caption, - Deposit = gDeposit.Key.Caption, + Wells = gCluster.Select(well => { + var dto = well.Adapt(); + dto.WellType = well.WellType?.Caption; + dto.LastTelemetryDate = wellService.GetLastTelemetryDate(well.Id); + dto.Cluster = gCluster.Key.Caption; + dto.Deposit = gDeposit.Key.Caption; + return dto; }), }), });