public bool IsItemInCategory(string categoryId, string[] excludingCategoryIds, string[] excludingProductIds)
 {
     return(LineItems.InCategories(new[] { categoryId })
            .ExcludeCategories(excludingCategoryIds)
            .ExcludeProducts(excludingProductIds)
            .Any());
 }
        public decimal GetItemsOfCategoryQuantity(string categoryId, string[] excludingCategoryIds, string[] excludingProductIds, string[] excludingSkuIds)
        {
            var retVal = LineItems.InCategories(new[] { categoryId })
                         .ExcludeCategories(excludingCategoryIds)
                         .ExcludeProducts(excludingProductIds)
                         .ExcludeSkus(excludingSkuIds)
                         .Sum(x => x.Quantity);

            return(retVal);
        }