title: Why does this route not work?
body: <p>On the class I have:</p>
  
  <pre><code>[Route("api/candidate/free")]
  </code></pre>
  
  <p>On the method, I have:</p>
  
  <pre><code>[HttpDelete("{dateRangeId}")]
  public IActionResult Delete(int dateRangeId)
  </code></pre>
  
  <p>This results in a 404:</p>
  
  <pre class="lang-none prettyprint-override"><code>/api/candidate/free/123
  </code></pre>
  
  <p>When the attribute is removed:</p>
  
  <pre><code>[HttpDelete]
  public IActionResult Delete()
  </code></pre>
  
  <p>This doesn't result in a 404:</p>
  
  <blockquote>
    <p>/api/candidate/free/</p>
  </blockquote>
  
  <p>What is wrong with the parameter?</p>