Exemple #1
0
        public IActionResult GetCustomersByCountry(string country)
        {
            var _repository = new ChinookRepository();
            var customers   = _repository.GetCustomersByCountry(country);

            if (!customers.Any())
            {
                return(NotFound());
            }

            return(Ok(customers));
        }