Exemplo n.º 1
0
        /// <summary>
        /// 获得用户列表
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="realName"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public JsonResult GetUserList(string userName = "", string realName = "", int pageIndex = 1, int pageSize = 20)
        {
            userDb = new UserDb(CurrentUserConnectionInfo);
            var total    = 0;
            var dataList = userDb.GetUserList(out total, userName, realName, pageIndex, pageSize);

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