@ -77,8 +77,9 @@ namespace Win_in.Sfs.Scp.WebApi
}
catch (Exception ex)
{
var baseEx = ex.GetBaseException();
entity.ErrorCode = 1;
entity.ErrorMessage = ex.Message;
entity.ErrorMessage = baseEx.Message;
var ret = await _partRepository.InsertAsync(entity);
@ -81,8 +81,9 @@ namespace Win_in.Sfs.Scp.WebApi
var ret = await _purchaseOrderRepository.InsertAsync(entity);
var dto = ObjectMapper.Map<PurchaseOrder, PurchaseOrderDTO>(ret);
@ -80,8 +80,9 @@ namespace Win_in.Sfs.Scp.WebApi
var ret = await _receiptRepository.InsertAsync(entity);
@ -76,8 +76,9 @@ namespace Win_in.Sfs.Scp.WebApi
var ret = await _supplierRepository.InsertAsync(entity);
@ -79,8 +79,9 @@ namespace Win_in.Sfs.Scp.WebApi
@ -15,4 +15,9 @@ namespace Win_in.Sfs.Scp.WebApi
LocalizationResource = typeof(WebApiResource);
public static class ExceptionExtension