Ejemplo n.º 1
0
        public object GetInvoicesPaging(int pageNumber, string fromDate, string toDate)
        {
            InvoiceDL      invoiceDL  = new InvoiceDL();
            InvoiceDL      invoiceDL2 = new InvoiceDL();
            List <Invoice> invoices   = invoiceDL.GetInvoicesPaging(pageNumber, fromDate, toDate);
            int            totalRow   = invoiceDL2.GetTotalPage(fromDate, toDate);
            object         obj        = new { data = invoices, totalRow = totalRow };

            return(obj);
        }
Ejemplo n.º 2
0
        public int GetTotalPage(string fromDate, string toDate)
        {
            InvoiceDL invoiceDL = new InvoiceDL();

            return(invoiceDL.GetTotalPage(fromDate, toDate));
        }