title: How to have both 'get by id' and 'get by name' routes on ASP.NET core 2.0 controller?
body: <p>I'm writing a small Web API controller. Currently I've routed a</p>
  
  <pre><code>[HttpGet("{id}"}]
  </code></pre>
  
  <p>path and it works fine: localhost:8080/Controller/1 returns the item with the id equal to 1.</p>
  
  <p>The problem is that I am trying to add a 'get by name' request:</p>
  
  <pre><code>[HttpGet("{name}")]
  </code></pre>
  
  <p>How can I go about doing this? </p>
  
  <p>Thank you for your time</p>