public void LogOut() { _user.ResetUser(); _apiHelper.LogOffUser(); ActivateItem(IoC.Get <LoginViewModel>()); NotifyOfPropertyChange(() => IsLoggedIn); NotifyOfPropertyChange(() => IsLoggedOut); }
public async Task LogOut() { _user.ResetUser(); _apiHelper.LogOffUser(); await ActivateItemAsync(IoC.Get <LoginViewModel>(), new CancellationToken()); NotifyOfPropertyChange(() => IsLoggedIn); NotifyOfPropertyChange(() => IsLoggedOut); }