public ActionResult Index()
        {
            ViewBag.MetaTitle = Settings.PageTitle;

            var model = new ContactUsRenderModel(
                pageHeader: StringResourceProvider.GetString("ContactUs.Page.Header"),
                useCaptcha: CaptchaSettings.CaptchaIsConfigured() && CaptchaSettings.RequireCaptchaOnContactForm);

            return(View(model));
        }
        public ActionResult Create()
        {
            var customer = HttpContext.GetCustomer();

            // We will allow registered customers to create new accounts if they end up on the page but we won't
            // prepopulate and fields so its clear they're creating a new account. Otherwise, we'll try and fill in
            // whatever fields we might have fromt he current customer record.
            var account = !customer.IsRegistered
                                ? new AccountCreateViewModel
            {
                FirstName            = customer.FirstName,
                LastName             = customer.LastName,
                Email                = customer.EMail,
                Phone                = customer.Phone,
                IsOkToEmail          = customer.OKToEMail,
                IsOver13             = customer.IsOver13,
                VatRegistrationId    = customer.VATRegistrationID,
                SaveCreditCardNumber = customer.StoreCCInDB
            }
                                : new AccountCreateViewModel();

            return(View(new AccountCreateIndexViewModel(
                            displayCaptcha: CaptchaSettings.CaptchaIsConfigured() && CaptchaSettings.RequireCaptchaOnCreateAccount,
                            requireEmailConfirmation: AppConfigProvider.GetAppConfigValue <bool>("RequireEmailConfirmation"),
                            displayOver13Selector: AppConfigProvider.GetAppConfigValue <bool>("RequireOver13Checked"))
            {
                Account = account,
                PrimaryBillingAddress = new AccountAddressViewModel(),
                PrimaryShippingAddress = new AccountAddressViewModel()
            }));
        }