Example #1
0
        public async Task OnGetAsync()
        {
            Pokemon = await _pokemonRepository.GetPokemonList((pageNumber - 1) *itemCount, itemCount);

            numberOfPages = Convert.ToInt32(Math.Ceiling((double)_pokemonRepository.GetPokemonCount() / itemCount));
        }