Exemple #1
0
        public RedirectToPageResult OnPostBuyMe(int id)
        {
            AppUser user = DbService.GetUser(User.FindFirst(ClaimTypes.NameIdentifier).Value);

            DbService.BuyFighter(new Fighter(), user);
            return(RedirectToPage("./Index"));
        }
 public void OnPostBuy(Fighter fighter)
 {
     DbService.BuyFighter(fighter, DbService.GetUser(User.FindFirst(ClaimTypes.NameIdentifier).Value));
 }