title: ASP.NET WebAPI 2: How to pass empty string as parameter in URI
body: <p>I have a function like this in my <code>ProductsController</code>:</p>
  
  <pre><code>public IHttpActionResult GetProduct(string id)
  {
      var product = products.FirstOrDefault((p) =&gt; p.Id == id);
      return Ok(product);
  }
  </code></pre>
  
  <p>When I send a GET request with this URL:</p>
  
  <pre><code> api/products?id=
  </code></pre>
  
  <p>it treats <code>id</code> as null. How can I make it to treat it as an empty string?</p>