private static List <Name> GetNames(EFPokemonColors pokemonColor) { return(pokemonColor .PokemonColorNames .Select(x => new Name(x.Name, x.LocalLanguage.ToNamedApiResource())) .ToList()); }
private static List <NamedAPIResource> GetPokemonSpecies(EFPokemonColors pokemonColor) { return(pokemonColor .PokemonSpecies .Select(x => x.ToNamedApiResource()) .ToList()); }
internal static NamedAPIResource ToNamedApiResource(this EFPokemonColors src) => src.ToNamedApiResource <PokemonColorsController>();