title: No MediaTypeFormatter is available to read an object of type 'InventoryItem'
body: <p>AJAX Call</p>
  
  <pre><code>$.ajax({
      url: '/api/Inventory',
      cache: false,
      type: 'POST',
      data: json,
      contentType: 'application/json, charset=utf-8',
      statusCode: {
          201: function (data) {
              console.log(data);
              viewModel.items.push(data);
          }
      }
  });
  </code></pre>
  
  <p>Sent Data (<code>json</code>) / Request Payload</p>
  
  <pre><code>{"Id":0,"Upc":"3456789012","Quantity":"200","Category":"Vodka","TransactionType":"Audit","MetaData":"ABSOLUT 750ml"} 
  </code></pre>
  
  <p><strong>Response Error</strong></p>
  
  <blockquote>
    <p>No MediaTypeFormatter is available to read an object of type
    'InventoryItem' from content with media type ''undefined''."</p>
  </blockquote>
  
  <p>Routed POST method</p>
  
  <pre><code>public HttpResponseMessage PostItem(InventoryItem item)
  </code></pre>
  
  <p>All properties in the JSON string are present in the <code>InventoryItem</code> model. </p>
  
  <p>A <strong><a href="https://stackoverflow.com/questions/10934077/upgrading-to-mvc4-rc-no-mediatypeformatter-is-available-to-read-an-object-of-ty">similar question</a></strong> regarding complex types suggested upgrading from Beta to RC to fix a model binding change, which I have done.</p>
  
  <p>If the question isn't obvious, how do I rectify this error? If I add the the [FromUri] attribute to the Routed POST method, then the AJAX call is routed properly, but with an empty <code>InventoryItem</code>. If you need any other information, please let me know.</p>