title: OData WebAPI 2.2 Post method Example
body: <p>I am in creation of webapi odata service. I have a post method named "Validate" in my controller named "User" as below:</p>
  
  <pre><code>    public class UserController : ODataController
          {
  
                 [HttpPost]
                  public HttpResponseMessage Post(LoginEntityDto objLogin)
                  {
                      //mylogin 
  
                  }
          }
  
      //Custom class
      public class LoginEntityDto
          {
              public string username { get; set; }
              public string password { get; set; }
          }
  </code></pre>
  
  <p>I am inputting this post method with the below JSON Format </p>
  
  <pre><code>{
    "username": "C201566",
    "password" : "pwd"
  
  }
  </code></pre>
  
  <p>I am using the content-type : application / json </p>
  
  <p>but in my post method the input objLogin is always <strong>null</strong>
  Please help me in resolving this issue.</p>