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));
        }
Exemple #4
0
 public UserInfoMenu(UserEventService userEventService)
 {
     this.userEventService = userEventService;
 }
Exemple #5
0
 public UserInfoLoggingFeature(DiscordClient dClient, BloonLog bloonLog, UserEventService userEventService)
 {
     this.dClient          = dClient;
     this.bloonLog         = bloonLog;
     this.userEventService = userEventService;
 }