title: Pass decimal as value in WebAPI 2 URL
body: <p>I am creating a Web Api (v2.0) Method that needs to take in a decimal value as its parameter.</p>
  
  <p>I am getting a 404 not found error if I use the following URL: </p>
  
  <pre><code>http://localhost:4627/api/Product/Eligibility/10.5
  </code></pre>
  
  <p>But it works if I use the following URL against an Int parameter:</p>
  
  <pre><code>Http://localhost:4627/api/Product/Eligibility/10
  </code></pre>
  
  <p>These are the two corresponding Methods in the api:</p>
  
  <pre><code>// GET api/Product/Eligibility/10.0
  [Route("api/Product/Eligibility/{amount:decimal}")]
  public decimal GetEligibiilty(decimal amount)
  {
      return amount;
  }
  
  // GET api/Product/Eligibility/10
  [Route("api/Product/Eligibility/{amount:int}")]
  public decimal GetEligibiilty(int amount)
  {
      return amount;
  }
  </code></pre>
  
  <p>Steve</p>