Esempio n. 1
0
        public JsonResult GetEmps(string EmpName, string EmpNo, string DeptId, int pageSize, int pageIndex)
        {
            var list  = bll.GetList();
            var total = list.Count();
            var rows  = list.Skip(pageIndex).Take(pageSize).ToList();

            return(Json(new { total = total, rows = rows }, JsonRequestBehavior.AllowGet));
        }