Passing a model into RedirectToAction()
Posted
by
larryq
on Stack Overflow
See other posts from Stack Overflow
or by larryq
Published on 2012-12-19T16:43:11Z
Indexed on
2012/12/19
17:03 UTC
Read the original article
Hit count: 229
asp.net-mvc
|redirecttoaction
I'm curious how this works. In MVC you can call View() and pass a model as a parameter, but RedirectToAction (one of its incarnations at least) takes a 'routeValues' object, which appears to be the closest match.
If your model is passed in this parameter will that model type be available in the subsequent action method? Or are there caveats involved that might prevent accurate translation in some circumstances?
© Stack Overflow or respective owner