Exemple #1
0
        //GET api/Events/GetEventsByEventCode
        public IHttpActionResult GetEventsByEventCode(string eventCode)
        {
            if (!EventCodes.Contains(eventCode))
            {
                return(BadRequest("Event Code is invalid"));
            }

            return(Ok(_eventRepo.GetEventsByEventCode(eventCode)));
        }