public override decimal GetPrice() { decimal price = UndecoratedLineItem.GetPrice(); if (price >= DiscountThreshold) { price = price * (1 - (decimal)DiscountPercentage / 100); } return(price); }
public override decimal GetPrice() { decimal price = UndecoratedLineItem.GetPrice(); if (price >= CouponDiscount) { price = price - CouponDiscount; } return(price); }