Example #1
0
        public decimal SellVersion2(string buyer, ApplyDiscount discountMode)
        {
            decimal sellPrice;

            this.buyer = buyer;

            if (discountMode == ApplyDiscount.Yes)
            {
                sellPrice = price - (price * DEFAULT_DISCOUNT);
            }
            else
            {
                sellPrice = price;
            }

            return sellPrice;
        }
Example #2
0
 ApplyDiscount(ApplyDiscount(price, discount.type), discount.years);