forked from ddrilling/AsbCloudServer
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:
commit
a72e3c567a
@ -204,11 +204,18 @@ namespace AsbCloudWebApi.Controllers
|
||||
|
||||
using Stream stream = file.OpenReadStream();
|
||||
|
||||
await processMapPlanImportService.ImportAsync(idWell,
|
||||
idUser.Value,
|
||||
(options & 1) > 0,
|
||||
stream,
|
||||
cancellationToken);
|
||||
try
|
||||
{
|
||||
await processMapPlanImportService.ImportAsync(idWell,
|
||||
idUser.Value,
|
||||
(options & 1) > 0,
|
||||
stream,
|
||||
cancellationToken);
|
||||
}
|
||||
catch (FileFormatException ex)
|
||||
{
|
||||
return BadRequest(ex.Message);
|
||||
}
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user