public UserEventService CreateUserEventService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new UserEventService(userId); return(service); }
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)); }
public UserInfoMenu(UserEventService userEventService) { this.userEventService = userEventService; }
public UserInfoLoggingFeature(DiscordClient dClient, BloonLog bloonLog, UserEventService userEventService) { this.dClient = dClient; this.bloonLog = bloonLog; this.userEventService = userEventService; }