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