示例#1
0
        public HttpResponseMessage EventsByLocation(decimal lat, decimal lon, decimal distance)
        {
            List <Events> eventsData = EventsService.EventsByLocation(lat, lon, distance);

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

            response.Items = eventsData;

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