Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public IActionResult GetInvoicesByStatus(int statusId) { var invoicesByStatus = _repository.GetInvoicesByStatus(statusId); var noInvoicesByStatus = !invoicesByStatus.Any(); if (noInvoicesByStatus) { return(NotFound("There are currently no invoices with this status.")); } return(Ok(invoicesByStatus)); }