コード例 #1
0
        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");
        }
コード例 #2
0
 private ActionResult IndexViewResult(SetupViewModel model)
 {
     return View(model);
 }