Esempio n. 1
0
        public async Task <List <PokemonModelDTO> > GetPokemonsByTypeAsync(string type)
        {
            var pokemonList = await _pokemonRepository.GetAllByTypeAsync(type);

            return(pokemonList.Select(x => _mapper.Map <PokemonModelDTO>(x)).ToList());
        }