public IActionResult GetEmail(string email) { if (email.Length == 0) { return(BadRequest("Email is invalid!")); } Organization org = _srv.FindOrgByEmail(email); if (org == null) { return(NotFound($"Couldn't find organization with email: {email}")); } return(Ok(org)); }