public ActionResult StartWizard()
        {
            var wizardModel = new WizardModel { Id = Guid.NewGuid().ToString() };
            wizardModel.Step1 = new Step1Model { WizardId = wizardModel.Id };
            wizardModel.Step2 = new Step2Model { WizardId = wizardModel.Id };

            Session[wizardModel.Id] = wizardModel;

            return RedirectToAction("WizardStep1", new { WizardId = wizardModel.Id });
        }
Example #2
0
        public ActionResult StartWizard()
        {
            var wizardModel = new WizardModel {
                Id = Guid.NewGuid().ToString()
            };

            wizardModel.Step1 = new Step1Model {
                WizardId = wizardModel.Id
            };
            wizardModel.Step2 = new Step2Model {
                WizardId = wizardModel.Id
            };

            Session[wizardModel.Id] = wizardModel;

            return(RedirectToAction("WizardStep1", new { WizardId = wizardModel.Id }));
        }