From ec97b024803720a9f9e03d288ca6fd63cba2cb2a Mon Sep 17 00:00:00 2001 From: eugeniy_ivanov Date: Wed, 28 Dec 2022 02:52:09 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlannedTrajectoryImportService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsbCloudInfrastructure/Services/PlannedTrajectoryService/PlannedTrajectoryImportService.cs b/AsbCloudInfrastructure/Services/PlannedTrajectoryService/PlannedTrajectoryImportService.cs index fe1b9682..014da8a3 100644 --- a/AsbCloudInfrastructure/Services/PlannedTrajectoryService/PlannedTrajectoryImportService.cs +++ b/AsbCloudInfrastructure/Services/PlannedTrajectoryService/PlannedTrajectoryImportService.cs @@ -59,7 +59,7 @@ namespace AsbCloudInfrastructure.Services.PlannedTrajectory public async Task ExportAsync(int idWell, CancellationToken token) { - var plannedTrajectorys = await plannedTrajectoryService.GetAsync(idWell, token); + var plannedTrajectorys = await plannedTrajectoryService.GetOrDefaultAsync(idWell, token); if (!plannedTrajectorys.Any()) return null; return MakeExelFileStream(plannedTrajectorys); @@ -130,7 +130,7 @@ namespace AsbCloudInfrastructure.Services.PlannedTrajectory { await plannedTrajectoryService.DeleteAllByIdWellAsync(idWell, token); } - var rowsCount = await plannedTrajectoryService.AddAsync(idWell, idUser, newRows, token); + var rowsCount = await plannedTrajectoryService.AddRangeAsync(idWell, idUser, newRows, token); return rowsCount; }