Esempio n. 1
0
        public async Task <IActionResult> Get(string customerId)
        {
            var customer = await _customerHandler.GetCustomer(customerId);

            if (customer != null)
            {
                return(Ok(customer));
            }

            return(NotFound());
        }
Esempio n. 2
0
 public Customer GetCustomer(int customerId)
 {
     return(_customerHandler.GetCustomer(customerId));
 }