Пример #1
0
        public IActionResult Pokemon(int id)
        {
            PokemonInfo pokemon = new PokemonInfo();

            Task.Run(async() =>
            {
                pokemon = await FetchData.GetPokemonInfo(id);
            }).GetAwaiter().GetResult();
            return(View(pokemon));
        }