public IActionResult NewGame(NewGameViewModel ngvm) { Pokemon p = pokemonRepo.GetById(ngvm.PokemonId); if (homeRepo.LinkPokemonToAccount(ngvm.PokemonId, (int)HttpContext.Session.GetInt32("AccountID"))) { return(RedirectToAction("Index", "Gevecht")); } return(View()); }