public async Task<ActionResult> Index(SetupBinder setup) { if (!this.ModelState.IsValid) { IndexViewModel model = new IndexViewModel(); model.Setup = setup; return this.View(model); } await this.setupService.InitializeAsync(setup.MapTo<Setup>()); this.routingService.UpdateRoutes(); return this.urlBuilder.Home.Redirect(); }
public ActionResult Index() { IndexViewModel model = new IndexViewModel(); return this.View(model); }