title: How to Passing IEnumerable parameter to ASP.NET web API action?
body: <p>I have two models:</p>
  
  <p>Transaction:</p>
  
  <pre><code>public class Transaction
  {
          public string Part { get; set; }
          public string Description { get; set; }
          public IEnumerable&lt;LotNum&gt; LotsList { get; set; }
  }
  </code></pre>
  
  <p>LotNum:</p>
  
  <pre><code>public class LotNum
  {
          public string LOTNUM { get; set; }
          public string LOTQTY { get; set; }
  }
  </code></pre>
  
  <p>Controller Action:</p>
  
  <pre><code>[HttpPost]
  public HttpResponseMessage ProcessTransaction(Transaction model)
  {
  
  }
  </code></pre>
  
  <p>When I am passing parameter to this action via Ajax call, the LotsList property values will always be blank:</p>
  
  <pre><code>var me = this,
  values = me.getValues();
          values.Part = 'R001';
          values.Description = 'Sample Desc';
  
          values.LotsList = [{
  
              "LOTNUM": "L7",
              "LOTQTY": "5"
          },
          {
              "LOTNUM": "L8",
       "LOTQTY": "5"
  }];
  
          Ext.Ajax.request({
              dataType: 'JSONP',
              url: '/Base/ProcessTransaction',
              params: values,
              method: 'POST',
  
              success: function (response) {
  
              },
              failure: function (response) {
  
              }
          });
  </code></pre>
  
  <p>Please let me know what I am missing and how can I get my problem resolved?
  Thanks.</p>