TempData persists for one more future request, isn't this anti REST ?
and what situations it's desired to use it ?
TempData persists for one more future request, isn't this anti REST ?
and what situations it's desired to use it ?
Kind of, we us it to show messages to the user when the page is redirected. ie when a new object is created, the user is redirected to the edit page showing the new id
POST /Person/Create
Update and save the new person, get their id set message in temp data "Person Created Successfully"
Redirect to /Person/Edit/1234
This is a kind of skip though another state e.g. /Person/Created/1234
it just saves a click I suppose.