Esempio n. 1
0
        public ActionResult Index(int GlobalSettingsID, string ViewPath, string DataSize, string FormColor, string FormButtonColor, USNHeading FormHeading,
                                  string FormSecondaryHeading, HtmlString FormIntroduction, string FormButtonText, string FormSubmissionMessage, string FormSubscriberListID, bool FormHideFields)
        {
            var  model = new USNNewsletterFormViewModel();
            Guid g     = Guid.NewGuid();

            model.UniqueID              = Guid.NewGuid().ToString();
            model.GlobalSettingsID      = GlobalSettingsID;
            model.CaptchaDataSize       = DataSize;
            model.FormColor             = FormColor;
            model.FormButtonColor       = FormButtonColor;
            model.FormHeading           = FormHeading;
            model.FormSecondaryHeading  = FormSecondaryHeading;
            model.FormIntroduction      = FormIntroduction;
            model.FormButtonText        = FormButtonText;
            model.FormSubmissionMessage = FormSubmissionMessage;
            model.FormSubscriberListID  = FormSubscriberListID;
            model.FormHideFields        = FormHideFields;

            return(PartialView(ViewPath + "/USNForms/USN_NewsletterSignup", model));
        }
        public ActionResult Index(int GlobalSettingsID, string ViewPath, string DataSize, string FormColor, string FormButtonColor, USNHeading FormHeading,
                                  string FormSecondaryHeading, HtmlString FormIntroduction, string FormButtonText, string FormSubmissionMessage, string FormSubscriberListID, string ContactRecipientEmailAddress, string PageName)
        {
            var  model = new USNContactFormViewModel();
            Guid g     = Guid.NewGuid();

            model.UniqueID                     = Guid.NewGuid().ToString();
            model.GlobalSettingsID             = GlobalSettingsID;
            model.CaptchaDataSize              = DataSize;
            model.FormColor                    = FormColor;
            model.FormButtonColor              = FormButtonColor;
            model.FormHeading                  = FormHeading;
            model.FormSecondaryHeading         = FormSecondaryHeading;
            model.FormIntroduction             = FormIntroduction;
            model.FormButtonText               = FormButtonText;
            model.FormSubmissionMessage        = FormSubmissionMessage;
            model.FormSubscriberListID         = FormSubscriberListID;
            model.ContactRecipientEmailAddress = ContactRecipientEmailAddress;
            model.PageName                     = PageName;

            return(PartialView(ViewPath + "/USNForms/USN_ContactForm", model));
        }