public ActionResult GetExpenseByFilter(string startDate, string endDate) { _expenseManager = new ExpenseManager(); // int startRow = (page - 1) * Configurations.GridPageSize; // int end = page * Configurations.GridPageSize; ExpenseDataContractList expenseListDC = new ExpenseDataContractList(); expenseListDC = _expenseManager.GetExpenseList(startDate, endDate); //var totalPages = (int)Math.Ceiling(totalRecords / (float)Configurations.GridPageSize); var jsonData = new { // total = totalPages, // page, // records = totalRecords, rows = expenseListDC.ExpenseDataListContract }; return(Json(jsonData, JsonRequestBehavior.AllowGet)); }
// GET: api/Expense public IEnumerable <Expense> Get() { return(ExpenseManager.GetExpenseList()); }