public ActionResult WidgetTime(WidgetEditModel model) { if (ModelState.IsValid) { model.Save(); SetSaved(); if (model.CachedWidget) { return RedirectToAction("WidgetTime", new { @id = model.Root_ContentID, @widgetid = model.Root_WidgetID }); } return RedirectToAction("WidgetTime", new { @widgetid = model.Root_WidgetID }); } return View(model); }
public ActionResult WidgetTime(WidgetEditModel model) { if (ModelState.IsValid) { model.Save(); return RedirectToAction("WidgetTime", new { @id = model.Root_ContentID, @widgetid = model.Root_WidgetID, @saved = true }); } return View(model); }