Esempio n. 1
0
        public async Task <List <PokemonModelDTO> > GetPokemonsByMultipleTypesAsync(List <string> types)
        {
            var pokemonList = await _pokemonRepository.GetAllByMultipleTypesAsync(types);

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