public IActionResult GetInvoicesByStateAbbr(string billingState) { var invoicesByBillingState = _repository.GetInvoicesByStateAbbr(billingState); var noInvoicesByBillingState = !invoicesByBillingState.Any(); if (noInvoicesByBillingState) { return(NotFound("There are currently no invoices for this state.")); } return(Ok(invoicesByBillingState)); }