public ActionResult PostGetRedirect(PostGetRedirectModel model) { if (ModelState.IsValid) { // process request... TempData.Add("PostGetRedirectModel", model); return RedirectToAction("PostGetRedirectSuccess"); // do redirect here to avoid potential resubmission } return View(model); }
public ActionResult PostGetRedirect() { var model = new PostGetRedirectModel(); return View(model); }