I had a page with a list of records that the user could view to see what was in the queue of things to do. The user would click on the link to bring up a table where they could choose which record to edit.
The problem was that my redirect to the Index view, while returning to the right view, wasn’t showing the link with the remaining records. Here is how I was attempting to do this:
return View("Index", item);
To fix this, I made a call to “RedirectToAction” to call the controller’s Index action:
return RedirectToAction("Index", "MyController", item);
The fields were cleared just as I wanted (because I had set the model to null before passing into “RedirectToAction”) and the remaining records link was there as expected.