Exemplo n.º 1
0
        //GET api/Events/GetEventsByGender
        public IHttpActionResult GetEventsByGender(string gender)
        {
            if (!Gender.Contains(gender))
            {
                return(BadRequest("Gender entered is not valid it must be either M, F, or Mix"));
            }

            return(Ok(_eventRepo.GetEventsByGender(gender)));
        }