public static void Main()
var invoice = new Invoice();
Console.WriteLine(invoice.GetInvoiceDiscount(100, InvoiceType.ProposedInvoice));
public double GetInvoiceDiscount(double amount, InvoiceType invoiceType)
if (invoiceType == InvoiceType.FinalInvoice)
finalAmount = amount - 100;
else if (invoiceType == InvoiceType.ProposedInvoice)
finalAmount = amount - 50;