public decimal GetItemsOfProductQuantity(string productId, string[] excludingSkuIds) { var retVal = LineItems.InProducts(new[] { productId }) .ExcludeSkus(excludingSkuIds) .Sum(x => x.Quantity); return(retVal); }
public bool IsItemInProduct(string productId) { return(LineItems.InProducts(new[] { productId }).Any()); }