private static List <GrowthRateExperienceLevel> GetLevels(EFGrowthRates growthRate) { return(growthRate .Experience .Select(x => new GrowthRateExperienceLevel(x.Level, x.Experience1)) .ToList()); }
private static List <NamedAPIResource> GetPokemonSpecies(EFGrowthRates growthRate) { return(growthRate .PokemonSpecies .Select(x => x.ToNamedApiResource()) .ToList()); }
private static List <Description> GetDescriptions(EFGrowthRates growthRate) { return(growthRate .GrowthRateProse .Select(x => new Description(x.Name, x.LocalLanguage.ToNamedApiResource())) .ToList()); }
internal static NamedAPIResource ToNamedApiResource(this EFGrowthRates src) => src.ToNamedApiResource <GrowthRatesController>();