FindItemByProductPrice() public method

public FindItemByProductPrice ( int productPriceId ) : ShoppingCartItem
productPriceId int
return ShoppingCartItem
Esempio n. 1
0
        public bool RemoveProduct(ShoppingCart cart, int productPriceId)
        {
            var item = cart.FindItemByProductPrice(productPriceId);

            if (item == null)
            {
                return(false);
            }

            return(RemoveItem(cart, item.Id));
        }
Esempio n. 2
0
        public bool RemoveProduct(ShoppingCart cart, int productPriceId)
        {
            var item = cart.FindItemByProductPrice(productPriceId);
            if (item == null)
            {
                return false;
            }

            return RemoveItem(cart, item.Id);
        }