Пример #1
0
        public ActionResult Create()
        {
            UserEventService userEventService = CreateUserEventService();
            var eventService = userEventService.GetAllUsersEvent();

            return(View(eventService));
        }
Пример #2
0
        // GET: UserEvent
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new UserEventService(userId);
            var model   = service.GetAllUsersEvent();

            return(View(model));
        }