public ActionResult Index() { var model = new StepIndexModel(); var panel = new Panel(); panel.ConfigLocation(); var form = FormHorizontal.Create(model, Url.Location(new Func <StepIndexModel, ActionResult>(Next))); panel.Append(form); return(new HtmlResult(panel.CreateGrid())); }
public ActionResult Next(StepIndexModel model) { var nextModel = new StepNextModel(); nextModel.Name = model.Name; var panel = new Panel(); panel.ConfigLocation(); var form = FormHorizontal.Create(nextModel, Url.Location(new Func <StepNextModel, ActionResult>(Finish))); panel.Append(form); return(new HtmlResult(panel.CreateGrid())); }