private void HandleLogoutCommand(object parameter) { bool isUserLoggedOut = DataPersister.LogoutUser(); if (isUserLoggedOut) { this.Username = ""; this.LoggedInUser = false; this.HandleChangeViewModelCommand(this.LoginRegisterVM); } }