title: ASP.Net Web API custom action taking multiple arguments?
body: <p>I want to implement a custom action in a Web API controller that takes multiple arguments with ASP.Net MVC 4 Web API framework.</p>
  
  <pre><code> public class APIRepositoryController : ApiController
  {
      ...
      [HttpGet, ActionName("retrieveObservationInfo")]
      public ObservationInfo retrieveObservationInfo(
                      int id, 
                      String name1, 
                      String name2)
      {
          //...do something...
          return ObservationInfo;
      }
      ...
  }
  </code></pre>
  
  <p>Such that I can call a URL in the web browser like:</p>
  
  <pre><code>"http://[myserver]/mysite/api/APIRepository/retrieveObservationInfo?id=xxx&amp;name1=xxx&amp;name2=xxx"
  </code></pre>
  
  <p>However, this has never worked.</p>
  
  <p>Is there anything else I need to configure, e.g. WebAPI routing? Currently I just use the default <code>WebApiConfig.cs</code>.</p>
  
  <p>Thanks in advance</p>