//GET api/Events/GetEventsByAgeAndEventCode public IHttpActionResult GetEventsByAgeAndEventCode(string age, string eventCode) { if (!EventCodes.Contains(eventCode)) { return(BadRequest("Event Code is not valid and must be match the neutral file format standard")); } return(Ok(_eventRepo.GetEventsByAgeAndEventCode(age, eventCode))); }