コード例 #1
0
ファイル: HomeController.cs プロジェクト: PetterZiden/BPoints
        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());
        }