Ejemplo n.º 1
0
        public IActionResult Rewards()
        {
            var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);

            ViewBag.RewardsProvided  = _rewardService.GetRewardsProvided(userId);
            ViewBag.RewardsQualified = _rewardService.GetRewardsQualified(userId);
            ViewBag.EventsAttended   = _eventService.GetAttendancesByUser(userId).Select(a => a.EventId).ToHashSet();
            return(View());
        }
Ejemplo n.º 2
0
        public IActionResult Index()
        {
            var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);

            return(View(_rewardService.GetRewardsProvided(userId)));
        }