public IActionResult GetCountryInvoices(string country) { var repo = new InvoiceRepo(); var invoices = repo.GetInvoiceByCountry(country); if (!invoices.Any()) { return(NotFound()); } return(Ok(invoices)); }