public ActionResult EditorTemplates(SampleEditorTemplatesModel model) { if (ModelState.IsValid) { TempData.AddSuccessMessage("This was a success"); return RedirectToAction("EditorTemplates"); } return View(model); }
public ActionResult EditorTemplates() { var model = new SampleEditorTemplatesModel(); return View(model); }