示例#1
0
        public JsonResult ActiveUser(string username, int active = 1)
        {
            if (Session["UserAD"] == null)
            {
                return(null);
            }
            AccountDAO dao = new AccountDAO();
            //var result = new ResultOfRequest(true, username);
            var result = dao.ActiveUser(username, active == 1);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }