AdventureWorks.UILogic.ViewModels.SignOutFlyoutViewModel.SignOutFlyoutViewModel C# (CSharp) Method

SignOutFlyoutViewModel() public method

public SignOutFlyoutViewModel ( IAccountService accountService, INavigationService navigationService ) : AdventureWorks.UILogic.Models
accountService IAccountService
navigationService INavigationService
return AdventureWorks.UILogic.Models
        public SignOutFlyoutViewModel(IAccountService accountService, INavigationService navigationService)
        {
            _accountService = accountService;
            _navigationService = navigationService;
            if (_accountService != null)
            {
                _userInfo = _accountService.SignedInUser;
            }

            if (_userInfo != null)
            {
                UserName = _userInfo.UserName;
            }

            SignOutCommand = new DelegateCommand(SignOut, CanSignOut);
        }