public ActionResult DisabledAccount(string keyValue) { if (keyValue == "System") { throw new Exception("当前账户不禁用"); } userBLL.UpdateState(keyValue, 0); return(Success("账户禁用成功。")); }
public ActionResult DisabledAccount(string keyValue) { if (keyValue == "System") { throw new Exception("当前账户不禁用"); } userBLL.UpdateState(keyValue, 0); return(Success("账户禁用成功。")); }