Take the tour ×  It is easy to redirect to an action with
Asp.Net MVC; you just have to call RedirectToAction with the
action name.  This is what I do in a lot of places:  return
base.RedirectToAction("Edit", new { id = viewModel.Id });  I'm
wondering to know why I cannot do this:  return
base.RedirectToAction("Edit", viewModel.Id);  Considering that
the default route parameter name is 'id' and in my case, the
parameter name is 'id', why Asp.Net MVC require an explicit name
in anonymous type?  share|improve this question add comment
Your Answer    Browse other questions tagged or ask your own
question.