Пример #1
0
        public IActionResult ChosenReward(int id, int rewardId)
        {
            User   currentUser   = _userService.GetUserById(id);
            Reward currentReward = _rewardService.GetRewardById(rewardId);

            ViewBag.message = _rewardService.BuyReward(currentReward, currentUser);
            ViewBag.user    = currentUser;
            ViewBag.reward  = currentReward;



            return(View());
        }