title: Passing POST parameter to WEB API2
body: <p>I have two different model need to be passed to web api. those two sample model are as follow
  </p>
  
  <pre><code> public class Authetication
   {
       public string appID { get; set; }
   }
  
   public class patientRequest
   {
       public string str1 { get; set; }
   }
  </code></pre>
  
  <p>so to get work this i have created a 3rd model which is as below.</p>
  
   <pre class="lang-cs prettyprint-override"><code> public class patientMaster
   {
       patientRequest patientRequest;
       Authetication Authetication;
   }
  </code></pre>
  
  <p>and to pass the data i have created following jquery code
  </p>
  
  <pre><code>var patientMaster = { 
      patientRequest : { "str1" : "John" },                                       
      Authetication  : { "appID" : "Rick" } 
  }
  
  
  $.ajax({
            url: "http://localhost:50112/api/Patient/PostTestNew",
            type: "POST",
            data: {"": patientMaster}
          });
  </code></pre>
  
  <p>and to catch this i have created following method in controller
    </p>
  
  <pre><code>[HttpPost]
  public string PostTestNew(patientMaster patientMaster)
  {
     return " .. con .. ";
  }
  </code></pre>
  
  <p><strong>My Problem is</strong></p>
  
  <p>whenever testing i am getting <code>patientMaster</code> object but i am not getting any data <code>Authetication</code> object nor <code>patientRequest</code> object</p>
  
  <p>I also tried to pass contenttype:json in jquery but it does not work</p>
  
  <p>can some one help me on this?</p>