public IActionResult Details(int id) { Pokemon pokemon = pokedex.Get(id); if (pokemon != null) { return(View(pokemon)); } return(NotFound()); }