Пример #1
0
        //GET api/Events/GetEventsByAgeAndGender
        public IHttpActionResult GetEventsByAgeAndGender(string age, string gender)
        {
            if (!Gender.Contains(gender))
            {
                return(BadRequest("Gender entered is not valid it must be either M, F, or Mix"));
            }

            return(Ok(_eventRepo.GetEventsByAgeAndGender(age, gender)));
        }