private static List <Description> GetDescriptions(EFPokemonShapes pokemonShape) { return(pokemonShape .PokemonShapeProse .Select(x => new Description(x.Description, x.LocalLanguage.ToNamedApiResource())) .ToList()); }
private static List <NamedAPIResource> GetPokemonSpecies(EFPokemonShapes pokemonShape) { return(pokemonShape .PokemonSpecies .Select(x => x.ToNamedApiResource()) .ToList()); }
private static List <AwesomeName> GetAwesomeNames(EFPokemonShapes pokemonShape) { return(pokemonShape .PokemonShapeProse .Select(x => new AwesomeName(x.AwesomeName, x.LocalLanguage.ToNamedApiResource())) .ToList()); }
internal static NamedAPIResource ToNamedApiResource(this EFPokemonShapes src) => src.ToNamedApiResource <PokemonShapesController>();