public IActionResult AddPokemon(Pokemon pokemon) { System.Console.WriteLine(pokemon.name); System.Console.WriteLine(pokemon.type); pokemonFactory.AddPokemon(pokemon); return(RedirectToAction("Index")); }