I wish to do something like this:
return RedirectToAction<SomeController>(c => Index(someparameter));
How to do this ?
Thanks, D.
I wish to do something like this:
return RedirectToAction<SomeController>(c => Index(someparameter));
How to do this ?
Thanks, D.
That is a feature of the MvcContrib project.
Just download MvcContrib from here, add a reference to MvcContrib.dll in your project and then you should be able to do exactly what you want.
is there something wrong with?
return RedirectToAction("Action", "Controller", new { parameter1 = value, param2 = value2 });