title: Unable to Post JSON data to OData WEBAPI Service Action
body: <p>I am trying consume my OData Action and trying to post a JSON Data as:</p>
  
  <pre><code>{
    "contractId":[1,3,5,7,9],
    "projectId":9
  }
  </code></pre>
  
  <p>My Action is configured as :</p>
  
  <pre><code>var deleteContracts = builder.EntityType&lt;Contract&gt;().Collection.Action("DeleteItems").Returns&lt;HttpResponseMessage&gt;();
  deleteContracts.CollectionParameter&lt;long&gt;("C_Id");
  deleteContracts.Parameter&lt;long&gt;("P_Id");
  </code></pre>
  
  <p>Action is as below: </p>
  
  <pre><code>[HttpPost]
  public IHttpActionResult DeleteItems (ODataActionParameters param)
   {
      //DO something
      return null;
   }
  </code></pre>
  
  <p>While I am trying to call this, I am getting the following issue:</p>
  
  <blockquote>
    <p>"error": {<br>
               "code": "",<br>
             "message": "The request entity's media type 'application/x-www-form-urlencoded' is not supported for this resource.",<br>
               "innererror": {<br>
               "message": "No MediaTypeFormatter is available to read an object of type 'ODataActionParameters' from content with media type 'application/x-www-form-urlencoded'.",<br>
               "type": "System.Net.Http.UnsupportedMediaTypeException",
               "stacktrace": " at  System.Net.Http.HttpContentExtensions.ReadAsAsync[T](HttpContent content, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken) at System.Web.Http.ModelBinding.FormatterParameterBinding.ReadContentAsync(HttpRequestMessage request, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)"<br>
           }<br>
        }</p>
  </blockquote>
  
  <p>Response header:</p>
  
  <pre><code>Content-Type: application/json; odata.metadata=minimal
  </code></pre>
  
  <p>Server: Microsoft-IIS/10.0
  Odata-Version: 4.0
  X-Sourcefiles: =?UTF-8?B?QzpcVXNlcnNcbG1pc2hyYVxEb2N1bWVudHNcTGF4bWlrYW50XF9wcm9qZWN0c1xXZWJcRGV2ZWxvcG1lbnRcQ29udHJhY3RzXEluRWlnaHQuQ29udHJhY3RzLldlYlNlcnZpY2VzXG9kYXRhLWNvbnRyYWN0c1xDb250cmFjdHNcRGVmYXVsdC5EZWxldGVTZWxlY3RlZENvbnRyYWN0?=
  X-Powered-By: ASP.NET
  Date: Fri, 25 Nov 2016 04:45:35 GMT
  Content-Length: 786</p>
  
  <p>Request Header:</p>
  
  <pre><code>POST /ContractsWebServices/ContractsWebService/odata-contracts/Contracts/Default.DeleteItems HTTP/1.1
  </code></pre>
  
  <p>HOST: localhost:65314
  content-type: application/json
  content-length: 50</p>
  
  <p>{
    "contractId":[1,3,5,7,9],
    "projectId":9
  }</p>
  
  <p>Any help is appreciated.
  Thanks. </p>