title: Difference between HttpGet and HttpPost in Asp.Net Web Api
body: <p>I am a beginner in web api asp.net MVC and I have a problem.
  I have a class that I will use in web api HttpGet and HttpPost:</p>
  
  <pre><code>public class Credit
  {
  public string Log {get; set;}
  public string Pas {get; set;}
  }
  </code></pre>
  
  <p>In the example API controller I have:</p>
  
  <pre><code>[HttpGet]
  public void Login (Credit credit)
  {
  }
  
  [HttpPost]
  public void Login (Credit credit)
  {
  }
  </code></pre>
  
  <p>Tests of these methods in RestConsole in Google Chrome, sending json data:</p>
  
  <pre><code>{"Log", "test", "Pas": "test"}
  </code></pre>
  
  <p>When debugging these methods, I see that HttpPost is working properly and parameter of "credit" is filled with properties.
  However HttpGet is not working properly, the object is not filled property, it is NULL.
  Can someone explain to me this situation and how can I get the complete object in the HttpGet?</p>