title: ASP.NET MVC. No idea how to use Url.action to pass an object to the controller
body: <p>I am new to asp.net MVC. I was able to create my view and display the data (Gridview). Additionally, I was able to create a hyperlink (using Url.Action) passing string and int types. However, I want to create a hyperlink that it is referencing a more complex type. The class associated with my view has a reference to a List. What I want is to create an additional ActionResult in my controller that gets as a parameter List (See below)</p>
  
  <pre><code>public ActionResult ViewItems(List&lt;Items&gt; c)
  {            
      return View(c);
  }
  </code></pre>
  
  <p>My idea is when is to be able to pass that List to the controller and then the controller will call the corresponding view. I tried (See below) but I just get blank.</p>
  
  <pre><code>&lt;asp:HyperLink ID="LinkContractID" runat="server" NavigateUrl='&lt;%#Url.Action("ViewItems", new {c = **((Contract)Container.DataItem).ContractItems.ToList&lt;Items&gt;(**)}) %&gt;'
  Text='&lt;%# Eval("ContractId") %&gt;'&gt;&lt;/asp:HyperLink&gt;
  </code></pre>