title: Passing object list to controller (C# MVC)
body: <p>I've the next controller with parameters: controlador, mostrarBorrados, listaFiltrosSeleccionados, cantRegistros and reportType.</p>
  
  <pre><code>[HttpGet]
  public ActionResult GetReport(string controlador, bool mostrarBorrados, List&lt;FiltroSeleccionado&gt; listaFiltrosSeleccionados, int? cantRegistros, string reportType)
  {
  
      //...
  
      return File(renderedBytes, mimeType);
  }
  </code></pre>
  
  <p>And I call it with the next ajax code:</p>
  
  <pre><code>$.ajax({
  url: '@Url.Action("GetReport", "Report")',
  type: 'GET',
  dataType: 'binary',
  data: { controlador: "condIva", mostrarBorrados: mostrarBorrados,
      listaFiltrosSeleccionados: listaFiltrosSeleccionados, cantRegistros : cantRegistros, reportType: "EXCELOPENXML" },
  success: function (response) {
      var url = URL.createObjectURL(response);
      var $a = $('&lt;a /&gt;', {
          'href': url,
          'download': 'descarga.xlsx',
          'text': "click"
      }).hide().appendTo("body")[0].click();
  }});
  </code></pre>
  
  <p>The file is generated correctly, but the problem is with "listaFiltrosSeleccionados" parameters.
  It arrives "null", like the next image:</p>
  
  <p><a href="https://i.stack.imgur.com/GOBke.png" rel="nofollow noreferrer">Capture</a></p>
  
  <p>What am I doing wrong? I tried differents way but it doesn't work (I put HttpPost, used stringify, etc.)</p>
  
  <p>Thanks!</p>