Exemple #1
0
        public static bool AreItemsInCategory(this AssociationExpressionEvaluationContext context, string[] categoryIds)
        {
            var result = context.Products
                         .InCategories(categoryIds)
                         .Any();

            return(result);
        }
Exemple #2
0
        public static bool AreItemPropertyValuesEqual(this AssociationExpressionEvaluationContext context, Dictionary <string, string[]> propertyValues)
        {
            var result = context.Products.WithPropertyValues(propertyValues).Any();

            return(result);
        }