public void LoginOut() { try { OnlineUser.Unlock(CurrentUser.UserID); CurrentUser = null; WriteSuccess(); } catch (Exception ex) { WriteError(ex.Message, ex); } }