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();
|
using Stream stream = file.OpenReadStream();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
await processMapPlanImportService.ImportAsync(idWell,
|
await processMapPlanImportService.ImportAsync(idWell,
|
||||||
idUser.Value,
|
idUser.Value,
|
||||||
(options & 1) > 0,
|
(options & 1) > 0,
|
||||||
stream,
|
stream,
|
||||||
cancellationToken);
|
cancellationToken);
|
||||||
|
}
|
||||||
|
catch (FileFormatException ex)
|
||||||
|
{
|
||||||
|
return BadRequest(ex.Message);
|
||||||
|
}
|
||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user