示例#1
0
        public HttpResponseMessage GetByUser()
        {
            string UserId = UserService.GetCurrentUserId();

            List <Events> eventsData = EventsService.GetByUser(UserId);

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

            response.Items = eventsData;


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