public async Task OnGetAsync() { Pokemon = await _pokemonRepository.GetPokemonList((pageNumber - 1) *itemCount, itemCount); numberOfPages = Convert.ToInt32(Math.Ceiling((double)_pokemonRepository.GetPokemonCount() / itemCount)); }
public async Task OnGetAsync() { Pokemon = await _pokemonRepository.GetPokemonList((pageNumber - 1) *itemCount, itemCount); numberOfPages = Convert.ToInt32(Math.Ceiling((double)_pokemonRepository.GetPokemonCount() / itemCount)); }