示例#1
0
 public JsonResult SavePartInvoice(InvoiceDTO invoiceDTO)
 {
     try
     {
         IInvoiceBL _invoiceBL = new InvoiceBL();
         var        invoiceID  = _invoiceBL.Add(invoiceDTO);
         return(new JsonResult {
             Data = new { invoiceID = invoiceID }
         });
     }
     catch (System.Exception ex)
     {
         ExceptionHandler exceptionHandler = new ExceptionHandler();
         exceptionHandler.WrapLogException(ex);
         return(null);
     }
 }