Esempio n. 1
0
        public List <Invoice> returnInvoiceListOrderByInvoiceNumber()
        {
            List <Invoice> lst        = new InvoiceDataSource().returnInvoiceList();
            List <Invoice> SortedList = lst.OrderBy(o => o.InvoiceNumber).ToList();

            return(SortedList);
        }
Esempio n. 2
0
        public List <Invoice> returnInvoiceListOrderByStaffName()
        {
            List <Invoice> lst        = new InvoiceDataSource().returnInvoiceList();
            List <Invoice> SortedList = lst.OrderBy(o => o.Admin).ToList();

            return(SortedList);
        }