public PopulateAllTestDropDownItems ( ) : void | ||
Результат | void |
public ActionResult Index(ComplicatedForm model) { if (ModelState.IsValidEditableFieldsOnly(model)) { return RedirectToAction("Index"); } model.PopulateAllTestDropDownItems(); return View(model); }
public ActionResult Index(ComplicatedForm model) { if (ModelState.IsValid) { TempData.Add("success", "Successfully submitted form!"); return RedirectToAction("Index"); } model.PopulateAllTestDropDownItems(); return View(model); }