Merge pull request 'РТК-план фиксы' (#87) from fix/processmap_import into dev

Reviewed-on: http://test.digitaldrilling.ru:8080/DDrilling/AsbCloudServer/pulls/87
This commit is contained in:
Никита Фролов 2023-07-27 10:01:24 +05:00
commit a72e3c567a

View File

@ -204,11 +204,18 @@ namespace AsbCloudWebApi.Controllers
using Stream stream = file.OpenReadStream();
try
{
await processMapPlanImportService.ImportAsync(idWell,
idUser.Value,
(options & 1) > 0,
stream,
cancellationToken);
}
catch (FileFormatException ex)
{
return BadRequest(ex.Message);
}
return Ok();
}