title: How to pass an array and other parameter from jquery to controller in ASP.NET MVC4?
body: <p>I am able to pass an array from jquery to controller with the help from</p>
  
  <p><a href="https://stackoverflow.com/questions/309115/how-can-i-post-an-array-of-string-to-asp-net-mvc-controller-without-a-form">How can I post an array of string to ASP.NET MVC Controller without a form?</a></p>
  
  <p>Now I need to pass one more parameter including array. How can I able to pass array and int parameters from jquery to controller? </p>
  
  <p>Here is what I tried.</p>
  
  <p>jquery</p>
  
  <pre><code>var postData = { values: itemIdsList, typeId: typeId }; //trying to pass typeId
  
   $.ajax({
      url: '/Orders/AddValuesType',
      //contentType: 'application/json; charset=utf-8',
      data: postData,
      dataType: "json",
      type: 'POST',
      traditional:true,
      success: function (result)
      {
          alert('success');
      }
  });
  </code></pre>
  
  <p>controller</p>
  
  <pre><code> public void AddValuesType(List&lt;string&gt; values, int typeId )
   {
      ...
   }
  </code></pre>
  
  <p>TIA</p>