public async Task <IActionResult> OnPostAsync(int gameId) { await _apiClient.AddGameToPlayerAsync(User.Identity.Name, gameId); return(RedirectToPage()); }