title: Creating POST method in Web API
body: <p>I'm developing a web service, using WEB .API. I'm following the <a href="http://www.asp.net/web-api/overview/creating-web-apis/creating-a-web-api-that-supports-crud-operations" rel="nofollow">example</a>, which include:</p>
  
  <pre><code>public HttpResponseMessage PostProduct(Product item)
  {
      item = repository.Add(item);
      var response = Request.CreateResponse&lt;Product&gt;(HttpStatusCode.Created, item);
  
      string uri = Url.Link("DefaultApi", new { id = item.Id });
      response.Headers.Location = new Uri(uri);
      return response;
  }
  </code></pre>
  
  <p>for creating a POST method, allowing a client to send data in POST in ordert to insert these data in the database (I'm using Entity Framework).</p>
  
  <p>What I want do, however, is slightly difference, since the data I want pass in post to the web service are not associated to any object of database: I have some data that should be write in more then one table. For example:</p>
  
  <pre><code>{"activity":"sport","customValue":"22","propertyIndex":"122-x"}
  </code></pre>
  
  <p>The activty value (sport) should be writed on one table, while the others two parameters (customValue e properyIndex) shouldbe writed on another table.</p>
  
  <p>So I think I need to parse the json file received in POST and then execute the two insert operation. </p>
  
  <p>How can I perform this task?</p>