title: Optional parameter using Route attribute in web API?
body: <p>I want two patterns of API url point to the same API action method:</p>
  
  <pre><code>api/Cities/{countryCode}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>api/Cities
  </code></pre>
  
  <p>Is this possible to configure using <code>Route</code> attribute?</p>
  
  <p>I made this and didn't work:</p>
  
  <pre><code>   [HttpGet, Route("GetCities/{code?}")]
          public dynamic GetCities(string code)
          {
              return GENOrderRepository.SelectCities(Context, code);
          }
  </code></pre>