Пример #1
0
 public IEnumerable <FashionVariant> GetVariations(FashionProduct currentContent)
 {
     return(_contentLoader
            .GetItems(currentContent.GetVariants(_relationRepository), _preferredCulture)
            .Cast <FashionVariant>()
            .Where(v => v.IsAvailableInCurrentMarket(_currentMarket)));
 }
Пример #2
0
 private IEnumerable <FashionVariant> GetVariants(FashionProduct currentContent)
 {
     return(_contentLoader
            .GetItems(currentContent.GetVariants(_relationRepository), _languageResolver.GetPreferredCulture())
            .OfType <FashionVariant>()
            .Where(v => v.IsAvailableInCurrentMarket(_currentMarket) && !_filterPublished.ShouldFilter(v))
            .ToArray());
 }
Пример #3
0
 public virtual IEnumerable <T> GetAllVariants <T>(FashionProduct product, string language) where T : VariationContent
 {
     return(_contentLoader
            .GetItems(product.GetVariants(_relationRepository), CultureInfo.GetCultureInfo(language))
            .OfType <T>());
 }
Пример #4
0
 public IEnumerable <FashionVariant> GetVariants(FashionProduct currentContent)
 {
     return(GetAvailableVariants(currentContent.GetVariants(_relationRepository)));
 }