Ejemplo n.º 1
0
 private static List <Name> GetNames(EFBerryFirmness berryFirmness)
 {
     return(berryFirmness
            .BerryFirmnessNames
            .Select(x => new Name(x.Name, x.LocalLanguage.ToNamedApiResource()))
            .ToList());
 }
Ejemplo n.º 2
0
 private static List <NamedAPIResource> GetBerries(EFBerryFirmness berryFirmness)
 {
     return(berryFirmness
            .Berries
            .Select(x => new NamedAPIResource
                    (
                        x.Item.Identifier.Replace("-berry", ""),
                        typeof(BerriesController).RscUrl(x.Id)
                    ))
            .ToList());
 }
Ejemplo n.º 3
0
 internal static NamedAPIResource ToNamedApiResource(this EFBerryFirmness src)
 => src.ToNamedApiResource <BerryFirmnessesController>();