title: Bind multiple values from the query string to an array parameter
body: <p>I have created the following ActionMethod as suggested <a href="https://stackoverflow.com/questions/32719274/asp-net-attribute-routing-array">here</a>:</p>
  
  <pre><code>[Route("[action]")]
  public IActionResult Orders([FromRoute] int[] filterby)
  {
      ICollection&lt;Order&gt; all;
      if(filterby.Length != 0)
      {
          all = _db.Orders.Where(s =&gt; filterby.Contains((int)s.Status)).ToList();
      }
      else
      {
          all = _db.Orders.ToList();
      }
  
      return View(all);
  }
  </code></pre>
  
  <p>When the request URI is something like:</p>
  
  <p><code>http://localhost:5000/admin/orders?filterby=0&amp;filterby=1</code></p>
  
  <p>The <code>filterby</code> parameter is always an array of 0 length. What can't I get it working?</p>