Exemple #1
0
        public static void DisplayInvoicePL()
        {
            try
            {
                objValidation = new InvoiceBLL();
                INV_BLL.InvoiceBLL bllobj = new InvoiceBLL();
                List <Invoice>     iList  = new List <Invoice>();

                iList = bllobj.DisplayInvoiceBLL();
                Console.WriteLine("Invoice Details");
                Console.WriteLine("=================");

                foreach (Invoice i in iList)
                {
                    Console.WriteLine("Invoice No :{0}\n Invoice Date :{1} \n Customer Name :{2}  \n Product Name : {3} \n Amount : {4}", i.InvoiceNo, i.InvoiceDate, i.CustomerName, i.ProductName, i.Amount);
                }
            }
            catch (InvoiceException i)
            {
                Console.WriteLine(i.Message);
            }
        }