public void Execute(object parameter) { if (parameter is ViewType type) { _navigator.CurrentVM = _vmFactory.CreateVM(type); } }
public void Execute(object parameter) { if (_authService.IsLoggedIn) { _authService.Logout(); _navigator.CurrentVM = _vmFactory.CreateVM(ViewType.Login); } }