public ActionResult DuplicateWidgetFrom(Guid id, string zone) { DuplicateWidgetFromModel model = new DuplicateWidgetFromModel(id, zone); ShowSaved(); return View(model); }
public ActionResult DuplicateWidgetFrom(DuplicateWidgetFromModel model) { if (ModelState.IsValid) { if (model.StepNumber == 1) { model.SearchOne(); } if (model.StepNumber == 2) { model.SearchTwo(); } if (model.StepNumber == 3) { model.Save(); } ModelState.Clear(); } Helper.HandleErrorDict(ModelState); return View(model); }
public ActionResult DuplicateWidgetFrom(Guid id, string zone, bool? saved) { DuplicateWidgetFromModel model = new DuplicateWidgetFromModel(id, zone); if (saved.HasValue && saved.Value) { ShowSave(); } return View(model); }