예제 #1
0
        public IActionResult GetAllInvoicesGroupedByCountry()
        {
            var invoices = _repository.GetInvoicesGroupedByCountry();
            var isEmpty  = !invoices.Any();

            if (isEmpty)
            {
                return(NotFound("No invoices found."));
            }
            return(Ok(invoices));
        }