public long Value(POSOrder order) { if (AmountOff > 0) { return AmountOff; } else { return (int)(order.PreTaxSubTotal * PercentageOff); } }