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); }
public int GetTotalPage(string fromDate, string toDate) { InvoiceDL invoiceDL = new InvoiceDL(); return(invoiceDL.GetTotalPage(fromDate, toDate)); }