title: How to pass a filtered list into Action parameters ASP.NET MVC
body: <p>Hi I have a WebGrid with two columns:</p>
  
  <blockquote>
    <p>1-Name<br>
    2-Action binded to another controller action. On click i will
    re-direct to that action, parameter should be a List of <code>List&lt;Test&gt;</code>
    items.</p>
  </blockquote>
  
  <p>Output:
  Request goes to Controller but parameter is empty colelction, am i missing anything.</p>
  
  <p>View:</p>
  
  <pre><code>@model IEnumerable&lt;Test&gt;
  &lt;div id="testGrid"&gt;
      @{
          var grid = new WebGrid(ajaxUpdateContainerId: "testGrid", canSort: true);
          grid.Bind(Model);   
          @MvcHtmlString.Create(
              @grid.GetHtml(
                  columns: grid.Columns
                      (
                          grid.Column(Html.DisplayNameFor(model =&gt; model.Name).ToHtmlString(),
                          header: Html.DisplayNameFor(model =&gt; model.Name).ToHtmlString()),
                          grid.Column("Action", header: "Action", format: @&lt;a href="@Url.Action("LoadTest", "NewController", 
                          new
                          {
                              ingredients = Model.Select(t=&gt;t.Id==@item.Id).ToList()
                          }
                          )" class="edit-btn"&gt;&lt;/a&gt;)  
                      )
                  ).ToString()
               )
      }
  &lt;/div&gt;
  </code></pre>
  
  <p>Controller code</p>
  
  <p>List coming empty.</p>
  
  <pre><code>public ActionResult LoadTest(List&lt;Test&gt; testItems)
          {
              //...test code.
          }
  </code></pre>