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