title: How can I use Url.Action with list parameters?
body: <p>Say I have an action method:</p>
  
  <pre><code>[HttpGet]
  public ActionResult Search(List&lt;int&gt; category){
      ...
  }
  </code></pre>
  
  <p>The way the MVC model binding works, it expects a list of category like this:</p>
  
  <pre><code>/search?category=1&amp;category=2
  </code></pre>
  
  <p>So my questions are:</p>
  
  <h3>How do I create that link using Url.Action() if I just hardcode it?</h3>
  
  <pre><code>Url.Action("Search", new {category=???}) //Expect: /search?category=1&amp;category=2
  </code></pre>
  
  <h3>How do I create that link using Url.Action() if my input is a list of int?</h3>
  
  <pre><code>var categories = new List&lt;int&gt;(){1,2}; //Expect: /search?category=1&amp;category=2
  
  Url.Action("Search", new {category=categories}) //does not work, 
  </code></pre>