title: Attribute Routing - optional parameter not working?
body: <p>According to <a href="http://blogs.msdn.com/b/webdev/archive/2013/10/17/attribute-routing-in-asp-net-mvc-5.aspx#optionals-and-defaults" rel="noreferrer">http://blogs.msdn.com/b/webdev/archive/2013/10/17/attribute-routing-in-asp-net-mvc-5.aspx#optionals-and-defaults</a></p>
  
  <p>You can have optional parameters by adding a question mark (?) when using attribute routing. However it does not work for me (ASP.NET Web API 5). </p>
  
  <pre><code>    [Route("staff/{featureID?}")]
      public List&lt;string&gt; GetStaff(int? featureID) {
          List&lt;string&gt; staff = null;          
          return staff;
      }
  </code></pre>
  
  <p>If I use <code>staff/1</code> etc it works fine, if I use <code>/staff</code> I get the usual:</p>
  
  <blockquote>
    <p>"No HTTP resource was found that matches the request URI..."</p>
    
    <p>"No action was found on the controller  that matches
    the request."</p>
  </blockquote>
  
  <p>Am I missing a reference or something? Or doing it wrong?</p>