title: Route to allow a parameter from both query string and default {id} template
body: <p>I have an action in my ASP.Net Core WebAPI Controller which takes one parameter. I'm trying to configure it to be able to call it in following forms:</p>
  
  <pre><code>api/{controller}/{action}/{id}
  api/{controller}/{action}?id={id}
  </code></pre>
  
  <p>I can't seem to get the routing right, as I can only make one form to be recognized. The (simplified) action signature looks like this: <code>public ActionResult&lt;string&gt; Get(Guid id)</code>. These are the routes I've tried:   </p>
  
  <ul>
  <li><code>[HttpGet("Get")]</code> -- mapped to <code>api/MyController/Get?id=...</code></li>
  <li><code>[HttpGet("Get/{id}")]</code> -- mapped to <code>api/MyController/Get/...</code></li>
  <li>both of them -- mapped to <code>api/MyController/Get/...</code></li>
  </ul>
  
  <p>How can I configure my action to be called using both URL forms?</p>