コード例 #1
0
        public ActionResult <Customer> GetByEmail(string email)
        {
            var customer = _customerService.GetByEmail(email);

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

            return(customer);
        }