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