public IActionResult PokemonDisplay(String name = null, String number = null) { try { Pokemon poke = pokemonModel.GetPokemonByName(name); ViewData["pokemon"] = poke; string[] effectiveness = pokemonModel.GetPokemonEffectiveness(); ViewData["super"] = effectiveness[0]; ViewData["weak"] = effectiveness[1]; ViewData["immune"] = effectiveness[2]; return(View()); } catch (Exception e) { Console.WriteLine("*******Error*******\n" + e); return(View("~/Views/Home/PokemonNotFound.cshtml")); } }