views:

32

answers:

2

I wish to do something like this:

return RedirectToAction<SomeController>(c => Index(someparameter));  

How to do this ?

Thanks, D.

+2  A: 

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.

Matthew Manela
A: 

is there something wrong with?

return RedirectToAction("Action", "Controller", new { parameter1 = value, param2 = value2 });
Joakim
Yes, I don't like strings. Makes making errors a lot easier.