Пример #1
0
 /// <summary>
 /// Gets a value indicating whether all <c>CartItem</c> in the <c>IEnumerable<CartItem></c> are email <c>GiftCard</c>
 /// </summary>
 public static bool IsAllEmailGiftCards(this IEnumerable <CartItem> cartItems)
 {
     return(cartItems
            .All(ci => GiftCard.ProductIsEmailGiftCard(ci.ProductID)));
 }
Пример #2
0
 static public bool IsAllFreeShippingComponents(IEnumerable <CartItem> cartItems)
 {
     return(cartItems
            .All(ci => ci.FreeShipping || !ci.Shippable || ci.IsDownload || GiftCard.ProductIsEmailGiftCard(ci.ProductID)));
 }