예제 #1
0
        public IActionResult FindEventsByOrg(string email)
        {
            if (email.Length == 0)
            {
                return(BadRequest("Email is invalid!"));
            }
            List <Event> events = _srv.FindEventsByOrg(email);

            if (events == null)
            {
                return(NotFound($"No results found for events when searching for: {email}"));
            }
            return(Ok(events));
        }