Exemplo n.º 1
0
        public HttpResponseMessage GetEventsByTagSlug(string slug)
        {
            List <Events> eventsData = EventsService.GetByTagSlug(slug);

            ItemsResponse <Events> response = new ItemsResponse <Events>();

            response.Items = eventsData;

            return(Request.CreateResponse(HttpStatusCode.OK, response));
        }