Пример #1
0
        public override decimal GetPrice()
        {
            decimal price = UndecoratedLineItem.GetPrice();

            if (price >= DiscountThreshold)
            {
                price = price * (1 - (decimal)DiscountPercentage / 100);
            }

            return(price);
        }
Пример #2
0
        public override decimal GetPrice()
        {
            decimal price = UndecoratedLineItem.GetPrice();

            if (price >= CouponDiscount)
            {
                price = price - CouponDiscount;
            }

            return(price);
        }