title: Need to send collection in a GET Request to my Web API
body: <p>I have a scenario where I need to send multiple ProductCodes in a GET Request to my Web API.  In my asp.net web api controller is there a way that I can make the parameter of my Action method be of type <code>List&lt;int&gt; ProductCodes</code>. I am assuming no, I have to pass them like this <code>?ProductCodes=a,b,c</code> and then accept it as list of string of <code>ProductCodes</code>.  Please let me know if there is a better way.</p>
  
  <p>I  am getting null at code side</p>
  
  <pre><code>[HttpGet] 
  [ActionName("product-cache-deletion")] 
  public HttpResponseMessage ProductCacheDeletion(List&lt;string&gt; ProductCodeList) { 
      //...
  }
  </code></pre>
  
  <p>Which I call like</p>
  
  <pre><code>http://localhost:59956/api/manuals/product-cache-deletion?ProductCodeList=a,b,c
  </code></pre>
  
  <p>but every time value will be null for <code>ProductCodeList</code></p>