public ActionResult GetData() { int pageIndex = Request["start"] != null?int.Parse(Request["start"]) : 1; int pageSize = Request["length"] != null?int.Parse(Request["length"]) : 5; int draw = Request["draw"] != null?int.Parse(Request["draw"]) : 1; int totalCount; short delFlag = 0; var userInfoList = UserInfoService.QueryByBeginPage <int>(pageIndex, pageSize, out totalCount, r => r.uStatus == delFlag, r => r.uID, true); var temp = from u in userInfoList select new { ID = u.uID, UserName = u.uLoginName, UserPwd = u.uLoginPWD, RealName = u.uRealName, subtime = u.uCreateTime, Remark = u.uRemark }; var jsonDataTemp = new { data = temp.ToList(), draw = draw, recordsTotal = totalCount, recordsFiltered = totalCount }; return(Json(jsonDataTemp, JsonRequestBehavior.AllowGet)); }