title: How to pass an object array to webAPI List
body: <p>I have a basic HTML which is calling a WebAPI function using jquery ajax call. HTML sends an array of objects which should get mapped to the functions parameter that i am receiving as LIST. If i remove array and send only 1 object and also remove list from function, then my code works and object is passed successfully to the parameter.</p>
  
  <p>JavaScript code is as below</p>
  
  <pre><code>    function Call_Service () {
  var input =
  {
      STATUS: "MY New Status",
      CATEGORY: "My Value"
  };
  
  var input2 =
  {
      STATUS: "MY New Status2",
      CATEGORY: "My Value2"
  };
  
  var input_array = new Array();
  input_array[0] = input;
  input_array[1] = input2;
  
  $.ajax({
      type: "POST",
      url: "http://localhost:34989/api/TMSPortal/objectPOC",
      data: input_array,
      success: function (response) {
          alert(response);
      }
  });
  }
  </code></pre>
  
  <p>C# WebAPI is as below</p>
  
  <pre><code>        public Int64 objectPOC(List&lt;TMS_STATUS&gt; _Status)
      {
  
          Int64 retValu = 0;
  
          for (int i = 0; i &lt; _Status.Count; i++)
          {
              retValu++;
          }
  
          return retValu;
      }
  </code></pre>