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)); }