public ActionResult Create() { UserEventService userEventService = CreateUserEventService(); var eventService = userEventService.GetAllUsersEvent(); return(View(eventService)); }
// GET: UserEvent public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new UserEventService(userId); var model = service.GetAllUsersEvent(); return(View(model)); }