public IEnumerable <FashionVariant> GetVariations(FashionProduct currentContent) { return(_contentLoader .GetItems(currentContent.GetVariants(_relationRepository), _preferredCulture) .Cast <FashionVariant>() .Where(v => v.IsAvailableInCurrentMarket(_currentMarket))); }
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()); }
public virtual IEnumerable <T> GetAllVariants <T>(FashionProduct product, string language) where T : VariationContent { return(_contentLoader .GetItems(product.GetVariants(_relationRepository), CultureInfo.GetCultureInfo(language)) .OfType <T>()); }
public IEnumerable <FashionVariant> GetVariants(FashionProduct currentContent) { return(GetAvailableVariants(currentContent.GetVariants(_relationRepository))); }