Esempio n. 1
0
 private static List <NamedAPIResource> GetPokemonSpecies(EFPokemonHabitats pokemonHabitat)
 {
     return(pokemonHabitat
            .PokemonSpecies
            .Select(x => x.ToNamedApiResource())
            .ToList());
 }
Esempio n. 2
0
 private static List <Name> GetNames(EFPokemonHabitats pokemonHabitat)
 {
     return(pokemonHabitat
            .PokemonHabitatNames
            .Select(x => new Name(x.Name, x.LocalLanguage.ToNamedApiResource()))
            .ToList());
 }
Esempio n. 3
0
 internal static NamedAPIResource ToNamedApiResource(this EFPokemonHabitats src)
 => src.ToNamedApiResource <PokemonHabitatsController>();