Пример #1
0
 private static List <Name> GetNames(EFPokemonColors pokemonColor)
 {
     return(pokemonColor
            .PokemonColorNames
            .Select(x => new Name(x.Name, x.LocalLanguage.ToNamedApiResource()))
            .ToList());
 }
Пример #2
0
 private static List <NamedAPIResource> GetPokemonSpecies(EFPokemonColors pokemonColor)
 {
     return(pokemonColor
            .PokemonSpecies
            .Select(x => x.ToNamedApiResource())
            .ToList());
 }
Пример #3
0
 internal static NamedAPIResource ToNamedApiResource(this EFPokemonColors src)
 => src.ToNamedApiResource <PokemonColorsController>();