title: How to receive model object sent by ajax call in a controller in asp.net mvc
body: <p>I sent an object to controllers action thorugh ajax , but I don't know how to recevie the object in controller. My ajax call is :</p>
  
  <pre><code>       $.ajax({
              type: "POST",
              url: '@Url.Action("Create","Home")',
              data: { ID: '@Model.ID', Name: '@Model.Name'}
          }).done(function (msg) {
              alert("Added :" + msg);
          });
  </code></pre>
  
  <p>This should work , BUt I can't figure out how to recevie the object in controller. I wrote this :</p>
  
  <pre><code>    public ActionResult Create(Home h)
      {
  
      }
  </code></pre>
  
  <p>But it is not working . I neeed help in this , Thanks in advance.</p>
  
  <p>My Home class :</p>
  
  <pre><code>public class Home
  {
      public int ID { get; set; }
      public string Name { get; set; }
  }
  </code></pre>