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); }
public bool enableUser(string uid) { UserBll userBll = new UserBll(); return userBll.SetUserStatus(uid, 1); }