title: how to pass parameters to asp.net web api get method?
body: <p>Following is my get method in ASP.NET Web API.</p>
  
  <pre><code>[HttpGet]
  public IHttpActionResult GetDetails([FromBody] RetrieveDetails  eDetails)
  {}
  </code></pre>
  
  <p>following is the class</p>
  
  <pre><code>public class RetrieveDetails
  { 
      public string name{ get; set; }     
      public string Type { get; set; } 
  }     
  </code></pre>
  
  <p>When I try to call <code>GetDetails</code> from Fiddler <code>eDetails</code> is always null.</p>
  
  <p><a href="http://localhost:101222/api/emailservice/GetDetails?name=testname&amp;Type=testtype" rel="nofollow noreferrer">http://localhost:101222/api/emailservice/GetDetails?name=testname&amp;Type=testtype</a></p>
  
  <p>I tried different methods but the value is always null.
  If I change [HttpGet] to [HttpPost] and add the request body its working fine. But I need get method.</p>