예제 #1
0
        public RegisterFreeTrialUserViewModel(
            IGlobalSitecoreService globalService,
            ITextTranslator textTranslator,
            IReturnUrlContext returnUrlContext,
            IUserProfileContext profileContext,
            IRegisterReturnUrlContext registerReturnUrlContext)
        {
            GlobalService           = globalService;
            TextTranslator          = textTranslator;
            ReturnUrlContext        = returnUrlContext;
            Profile                 = profileContext.Profile;
            RegisterReturnUrlContex = registerReturnUrlContext;

            Countries = globalService.GetCountries();
        }
예제 #2
0
        public ContactInformationViewModel(
            ITextTranslator translator,
            IAuthenticatedUserContext userContext,
            ISignInViewModel signInViewModel,
            IUserCompanyContext userCompanyContext,
            IUserProfileContext profileContext,
            IGlobalSitecoreService globalService)
        {
            TextTranslator  = translator;
            SignInViewModel = signInViewModel;

            IsAuthenticated   = userContext.IsAuthenticated;
            Username          = userContext.User.Username;
            Profile           = profileContext.Profile;
            AssociatedCompany = userCompanyContext?.Company?.Name ?? string.Empty;
            Salutations       = globalService.GetSalutations();
            Suffixes          = globalService.GetNameSuffixes();
            JobFunctions      = globalService.GetJobFunctions();
            JobIndustries     = globalService.GetJobIndustries();
            PhoneTypes        = globalService.GetPhoneTypes();
            Countries         = globalService.GetCountries();
        }