public ActionResult GetRoleInfoList() { int pageIndex = int.Parse(Request["page"]); int pageSize = int.Parse(Request["rows"]); int totalCount; //short delFlag = (short)DeleteEnumType.Normal; var roleList = roleInfoService.LoadPageEntities(pageIndex, pageSize, out totalCount, s => s.DelFlag == "false", s => s.ID, true); var rows = from r in roleList select new { ID = r.ID, RoleName = r.RoleName, Sort = r.Sort, Remark = r.Remark, SubTime = r.SubTime }; return(Json(new { rows = rows, totalCount = totalCount }, JsonRequestBehavior.AllowGet)); }