Is there a way to write a method in a class in a Asp.Net mvc application that (will be called from a controller and) redirects to a action and also supplies a parameter. Something like.
public class someClass
{
public object Redirect(string action, string controller)
{
//some code
return RedirectToAction(action, controller new {parameter=xxx});
}
}`
Thanks
`