Esempio n. 1
0
        public IActionResult GetCustomerById(long id)
        {
            var customer = _customerRepository.FindById(id);

            if (customer == default(Customer))
            {
                return(NotFound());
            }
            return(new ObjectResult(customer));
        }