title: How to use a List<Tuple<>> as an action method parameter?
body: <p>I want to send a <code>List&lt;Tupple&lt;&gt;&gt;</code> to a controller but I'm not doing it well because I always get the message <code>No parameterless constructor defined for this object</code> and the method's code doesn't get executed.</p>
  
  <p>I'm using a class as a view-model for the controller arguments:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class InsurancesHospitals
  {
      public int hospital { get; set; }
      public List&lt;Tuple&lt;int, string, bool&gt;&gt; insurances { get; set; }
  }
  </code></pre>
  
  <p>This is the controller:</p>
  
  <pre class="lang-cs prettyprint-override"><code>[Authorize]
  public ActionResult AssociateInsurances(InsurancesHospitals viewModel)
  {
      foreach (var insurance in viewModel.insurances)
      {
          /*
              Here I do some things...
          */
      }
  
      return Redirect("/Hospitals/Index");
  }
  </code></pre>
  
  <p>And this is the view from where I call the controller:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;form id="formulario" role="form" method="post" action="~/Hospitals/AssociateInsurances"&gt;
  
      &lt;label class="control-label" for="hospital"&gt;Hospital&lt;/label&gt;
      &lt;select class="form-control" id="hospital" name="hospital"&gt;
          @foreach (var hospital in (IQueryable&lt;HOSPITALS&gt;)ViewData["hospitals"])
          {
              &lt;option value="@hospital.ID" &gt;@hospital.NAME&lt;/option&gt;
          }
      &lt;/select&gt;
  
      &lt;div class="col-xs-12"&gt;
          &lt;div class="row"&gt;
              @{
                  var insurances = ((IQueryable&lt;INSURANCES&gt;)ViewData["insurances"]).ToList();
  
                  for (var index=0; index &lt; insurances.Count(); index++) 
                  {
                      &lt;input type="hidden" value="@insurances[index].ID" class="insurances" name="insurances[@index].Item1" /&gt;
  
                      &lt;div class="col-xs-3"&gt;
                          &lt;input type="checkbox" data-id="@insurances[index].ID" class="association" name="insurances[@index].Item3" /&gt;
                          @insurances[index].NAME
                      &lt;/div&gt;
  
                      &lt;div class="col-xs-3"&gt;
                          &lt;input type="text"  data-id="@insurances[index].ID" class="form-control codes" name="insurances[@index].Item2" /&gt;
                      &lt;/div&gt;
                  }
              }
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;button class="btn btn-success" type="submit"&gt;
          &lt;span&gt;Associate&lt;/span&gt;
      &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>