title: Pass Class Type Parameter via ajax jquery
body: <p>I have Class with following structure</p>
  
  <pre><code>public class MyType
      {
          [Key]
          [Required]
          public string name { get; set; }
          [Key]
          [Required]
          public string type{ get; set; }
  
      }
  
  
  Public Class A
  {
  string Id{get;set;}
  public List&lt;MyType&gt; aList{get;set;}
  }
  </code></pre>
  
  <p>My ajax calling is following:</p>
  
  <pre><code>var listitem=[
  {name:"a",type:1},
  {name:"b",type:2},
  {name:"c",type:3}
  ]
  
       $.ajax({
                  url: '@Url.Action("ActionMethod", "Controller")',
                  type: 'post',
                  async: false,
                  data: {
                      Id: 1,                    
                      aList :listitem
  
                  },
                  success: function (resp) {
  
                  },
                  error: function (resp) {
                  }
              });
  </code></pre>
  
  <p>My Action Method is following:</p>
  
  <pre><code> [HttpPost]
              public ActionResult ActionMethod(A adata)
              {
                  return some action;
  
              }
  </code></pre>
  
  <p>I am getting value of Id in ActionMethod but list item is blank? how can i pass the list?</p>