Exemple #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;
        }
 ApplyDiscount(ApplyDiscount(price, discount.type), discount.years);