Example #1
0
        public ActionResult ModifyRegister(int id, bool enable)
        {
            var res = new TRes
            {
                bok = false
            };

            string errmsg = string.Empty;
            bool   bRet   = SysUserInfo.EnableUser(id, enable, out errmsg);

            res.bok = bRet;
            res.msg = errmsg;
            return(Json(res));
        }