title: MVC 5 - Redirect to a controller from anywhere
body: <p>I am developing a MVC 5 internet application, and I wish to redirect to a controller/action result from anywhere in my application.</p>
  
  <p>The controller name is "Manager", and the action result is "TestAction" </p>
  
  <p>In an action result, the following code can be used:</p>
  
  <pre><code>RedirectToAction("TestAction", "Manager")
  </code></pre>
  
  <p>I have also coded a filter attribute as follows:</p>
  
  <pre><code>filterContext.Result = new RedirectToRouteResult( new RouteValueDictionary{{ "controller", "Manage" }, { "action", "TestAction" } });
  </code></pre>
  
  <p>Is there a generic way to send the user to a specific controller, action result from anywhere in a MVC application? I specifically wish to do this in an extension method.</p>
  
  <p>Thanks in advance.</p>