Ejemplo n.º 1
0
        public async Task <ActionResult <Customer> > GetCustomer(int id)
        {
            var customer = await _customersRep.GetCustomerAsync(id);

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