public JsonResult GetRecordByPage(int pageIndex, int size) { RecordDAO dao = new RecordDAO(); pageIndex -= 1; List <Record> lst = dao.GetRecordByPage(pageIndex, size); return(Json(new { data = lst, }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetRecordByPage(int pageIndex, int size) { RecordDAO dao = new RecordDAO(); pageIndex -= 1; List <Record> lst = dao.GetRecordByPage(pageIndex, size); return(Json(new { data = lst, }, JsonRequestBehavior.AllowGet)); }