title: Asp.net route two parameters to method in controller
body: <p>I have the follwing function</p>
  
  <pre><code>[Route("/ClientReservations/{id}/{name}")]
          public ActionResult GetView(int id,string name)
          {
              ReservationHouseDetails houseDetails=null;
              repository.GetHousesForReservation(id).Where(item =&gt; item.Name.Equals(name)).ForEach(item =&gt; houseDetails = new ReservationHouseDetails()
              {
                  House=item,
                  Meal = repository.GetHouseMealForReservation(item.Id),
                  Participants = repository.GetParticipantsHouseForReservation(item.Id)
              });
  
              return PartialView("ReservationHouseDetails", houseDetails);
          }
  </code></pre>
  
  <p>This method is called in this way</p>
  
  <pre><code>@using (Ajax.BeginForm(new AjaxOptions
      {
          Url = Url.Action("GetView", "ClientReservations", new { id = Model.Reservation.Id, name = Model.SelectedHouseDetailsText }),
          HttpMethod = "get",
          InsertionMode = InsertionMode.Replace,
          UpdateTargetId = "divForSelectHouse"
      }))
      {
          &lt;div class="form-group"&gt;
              &lt;div class="col-md-offset-2 col-md-10"&gt;
                  &lt;input type="submit" class="SelectHouse"
                         value="Wybierz domek" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
      }
  </code></pre>
  
  <p>I have check in debbug mode and to value name is assigned value from model. However when it pass to presented method second parameter "name" is null. What could be the reason?</p>