Пример #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());
        }