コード例 #1
0
ファイル: InvoiceBL.cs プロジェクト: ngavuong/ruscoffee
        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);
        }