public ActionResult IndexPOST(SetupViewModel model) { if (!ModelState.IsValid) { return IndexViewResult(model); } var setupContext = new SetupContext { SiteName = model.SiteName, EnabledFeatures = null, // default list }; var executionId = _setupService.Setup(setupContext); // redirect to the welcome page. return Redirect("~/" + _shellSettings.RequestUrlPrefix + "home/index"); }
private ActionResult IndexViewResult(SetupViewModel model) { return View(model); }