diff --git a/AsbCloudInfrastructure/Services/TrajectoryVisualizationService.cs b/AsbCloudInfrastructure/Services/TrajectoryVisualizationService.cs index c6ad3b4b..36ed5106 100644 --- a/AsbCloudInfrastructure/Services/TrajectoryVisualizationService.cs +++ b/AsbCloudInfrastructure/Services/TrajectoryVisualizationService.cs @@ -21,13 +21,13 @@ namespace AsbCloudInfrastructure.Services public async Task> GetTrajectoryAsync(int idWell, CancellationToken token) { var result = new List(); - var dto = (await repository.GetAsync(idWell, token)).ToArray(); + var dtos = (await repository.GetAsync(idWell, token)).ToArray(); - var prevData = dto[0]; + var prevData = dtos[0]; var prevCoordinates = new TrajectoryVisualizationDto(); - for (var i = 1; i < dto.Length; i++) + for (var i = 1; i < dtos.Length; i++) { - var data = dto[i]; + var data = dtos[i]; var flat = GetFlat(data.WellboreDepth, prevData.WellboreDepth, data.ZenithAngle); var x = prevCoordinates.X = GetX(data.AzimuthGeo, flat, prevCoordinates.X); var y = prevCoordinates.Y = GetY(data.AzimuthGeo, flat, prevCoordinates.Y);