title: In .Net MVC, how do you access variables from URL Routing outside of the Action?
body: <p>I'm building a controller that other controllers can inherit (provide base functionality across site without repeating code):</p>
  
  <pre><code>public abstract class ApplicationController : Controller
  {
      protected ApplicationController()
      {
         //site logic goes here
         //what is the value of agentID from the Action below??
      }
  }
  
  public class AgentController : ApplicationController
  {
      public ActionResult Index(string agentID)
      {
          return View();
      }
  }
  </code></pre>
  
  <p>The logic that applies to the entire site will go into the constructor of the ApplicationController class.</p>
  
  <p>The problem is in that constructor I need to access the value in the parameter from the Action, in this case agentID (it will be the same across the entire site). Is there a way to read that value in?</p>