Scenario:
Clicking a delete hyperlink on one product of a product list will invoke /Product/Delete HttpGet action method. The user then clicks the confirmation button to invoke /Product/Delete HttpPost action method which in turn redirect the user to /Product/Deleted HttpGet action method.
I want to prevent users from skipping /Product/Delete and directly invoking /Product/Deleted.
Before redirecting put something into
TempData. Then in theDeletedaction verify if this something is present in theTempData.You should be aware that there is a price to pay with this. If the user presses F5 while browsing the
/product/deletedaction he will get 404. So basically what you are trying to do is bad design and I would recommend you avoiding it.