title: How can i pass list of objects as a parameter on WebApi Odata?
body: <p>I have problem in passing list of object as a parameter on WebApi Odata.
  I have two classes:</p>
  
  <pre><code>public class Test{
    public int Id {get; set;}
    public string Desc {get; set;}
    public Tests[] Tests{ get; set; }
  }
  
   public class Tests{
       public int Entry1 {get; set;}
       public int Entry2 {get; set;}
   }
  </code></pre>
  
  <p>On the client side im passing the parameters as object:</p>
  
  <pre><code>var postData = {
       onTest: {
            id: data.Id, 
            desc: data.Desc 
            tests: data.Tests // here there is list of two objects
                   }
              };
  </code></pre>
  
  <p>and on WebApiConfig:</p>
  
  <pre><code>builder.EntitySet&lt;Test&gt;("Tests");
   var onTest = builder.EntityType&lt;Test&gt;().Collection.Action("UpdateTest");
   onTest .EntityParameter&lt;Test&gt;("onTest");
  </code></pre>
  
  <p>When im sendding only the Id and the Desc, they are passed ok to the controller action, but when i include the list of Test the parameters received are null.</p>
  
  <p>Any suggestion how can i pass list of objects Tests to the controller through parameters?</p>