title: How to pass List<int> in query string to a controller's action in MVC4
body: <p>In C# I have three objects in my class like:</p>
  
  <pre><code>public class ABC{
  public int AgeMin{get;set;}
  public int AgeMax{get;set;}
  public List&lt;int&gt; MaritalStatuses{get;set;}
  }
  </code></pre>
  
  <p>Now when I pass all these objects values to controller's action via query string which is receiving the object of type ABC, I am passing like this:</p>
  
  <pre><code>&amp;AgeMin=@Model.filter.AgeMin&amp;AgeMax=@Model.filter.AgeMax&amp;MaritalStatuses=@string.Join(",", @Model.filter.MaritalStatuses)
  </code></pre>
  
  <p>Values of AgeMin and AgeMax are correct but values of List MaritalStatuses are not correct because it is a List. How can I pass this List values to query string ?</p>