title: Marry RouteData.Values with Action Parameters
body: <p>I'm setting some <code>RouteData</code> inside a custom <code>Action Filter</code></p>
  
  <pre><code>filterContext.RouteData.Values.Add("accountId", accountId);
  filterContext.RouteData.Values.Add("permission", (int)permission);
  </code></pre>
  
  <p>Then I have an action like the following</p>
  
  <pre><code>public ActionResult Get(Guid accountId, int permission, int id) {
  
  }
  </code></pre>
  
  <p><strong>Can I marry the <code>RouteData</code> values to the action parameters via a route? If so, how?</strong></p>
  
  <p>I'd like to just use an URL such as</p>
  
  <pre><code>http://localhost/Users/Get/1
  </code></pre>
  
  <p><em>They route data is present and can be retrieved by using</em></p>
  
  <pre><code>Guid accountId = (Guid)RouteData.Values["accountId"];
  Permission permission = (Permission)RouteData.Values["permission"];
  </code></pre>