public ActionResult <Customer> GetByEmail(string email) { var customer = _customerService.GetByEmail(email); if (customer == null) { return(NotFound()); } return(customer); }