diff --git a/AsbCloudInfrastructure/Services/Trajectory/TrajectoryImportService.cs b/AsbCloudInfrastructure/Services/Trajectory/TrajectoryImportService.cs index 132ffd63..5587789e 100644 --- a/AsbCloudInfrastructure/Services/Trajectory/TrajectoryImportService.cs +++ b/AsbCloudInfrastructure/Services/Trajectory/TrajectoryImportService.cs @@ -47,22 +47,22 @@ namespace AsbCloudInfrastructure.Services.Trajectory public async Task ExportAsync(int idWell, CancellationToken token) { - var plannedTrajectorys = await trajectoryService.GetAsync(idWell, token); - return MakeExelFileStream(plannedTrajectorys); + var trajectorys = await trajectoryService.GetAsync(idWell, token); + return MakeExelFileStream(trajectorys); } private Stream MakeExelFileStream(IEnumerable trajectories) { using Stream ecxelTemplateStream = GetTemplateFile(); using var workbook = new XLWorkbook(ecxelTemplateStream, XLEventTracking.Disabled); - AddPlannedTrajecoryToWorkbook(workbook, trajectories); + AddTrajecoryToWorkbook(workbook, trajectories); MemoryStream memoryStream = new MemoryStream(); workbook.SaveAs(memoryStream, new SaveOptions { }); memoryStream.Seek(0, SeekOrigin.Begin); return memoryStream; } - private void AddPlannedTrajecoryToWorkbook(XLWorkbook workbook, IEnumerable trajectories) + private void AddTrajecoryToWorkbook(XLWorkbook workbook, IEnumerable trajectories) { if (trajectories.Any()) {