|
@ -81,8 +81,9 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|
{ |
|
|
{ |
|
|
|
|
|
var baseEx = ex.GetBaseException(); |
|
|
entity.ErrorCode = 1; |
|
|
entity.ErrorCode = 1; |
|
|
entity.ErrorMessage = ex.Message; |
|
|
entity.ErrorMessage = baseEx.Message; |
|
|
} |
|
|
} |
|
|
var ret = await _purchaseOrderRepository.InsertAsync(entity); |
|
|
var ret = await _purchaseOrderRepository.InsertAsync(entity); |
|
|
var dto = ObjectMapper.Map<PurchaseOrder, PurchaseOrderDTO>(ret); |
|
|
var dto = ObjectMapper.Map<PurchaseOrder, PurchaseOrderDTO>(ret); |
|
|