示例#1
0
 public ActionResult disableUser(string uid)
 {
     int result;
     if (UserBll.SuperAdminID == uid)
     {
         result = -2;
     }
     else
     {
         UserBll userBll = new UserBll();
         if (userBll.SetUserStatus(uid, 0))
         {
             new UserBll().delLoginSign(uid);
         }
         result = userBll.SetUserStatus(uid, 0) ? 1 : -1;
     }
     return Json(result);
 }
示例#2
0
 public bool enableUser(string uid)
 {
     UserBll userBll = new UserBll();
     return userBll.SetUserStatus(uid, 1);
 }