Beispiel #1
0
 public async Task <IActionResult> GetInvoiceNotYetRecive()
 {
     try
     {
         return(Ok(await context.GetInvoiceNotYetRecive()));
     }
     catch (Exception ex)
     {
         return(BadRequest(new ErrorMessage(ex.Message)));
     }
 }
Beispiel #2
0
 public async Task <IHttpActionResult> GetInvoiceNotYetRecive()
 {
     try
     {
         return(Ok(await context.GetInvoiceNotYetRecive()));
     }
     catch (Exception ex)
     {
         return(Content(HttpStatusCode.NotFound, ex.Message));
     }
 }