Beispiel #1
0
        public IActionResult Get(string name)
        {
            var customer = customers.GetCustomerByName(name);

            if (customer == null)
            {
                return(NotFound("No customer found with the given name"));
            }
            return(Ok(customer));
        }