title: Model binding and GET requests?
body: <p>There are tons of examples for model binding in html forms, but I'm wondering if its possible to, and if so how to, use model binding for ActionLinks/GET requests.</p>
  
  <p>So, given the following model</p>
  
  <pre><code>public class Lurl
  {
    public string Str {get;set;}
    public char Chr {get;set;}
    public double Dbl {get;set;}
  }
  </code></pre>
  
  <p>and the following route (I'm not sure how this would be formed; I present it to show how I'd like the URL presents the properties Str, Chr and Dbl)</p>
  
  <pre><code>routes.MapRoute(
      "LurlRoute",
      "Main/Index/{str}/{chr}/{dbl}",
      new
      {
          controller = "Main",
          action = "Index",
          lurl = (Lurl)null
      }
  );
  </code></pre>
  
  <p>I'd like to use it this way in my Controller</p>
  
  <pre><code>[AcceptVerbs(HttpVerbs.Get)]
  public ActionResult Index(Lurl lurl)
  {
    /* snip */
  }
  </code></pre>
  
  <p>and this way in my page (two possible options; are there more?)</p>
  
  <pre><code>&lt;div class="links"&gt;
    &lt;%Html.ActionLink("Link one", "Index", new { lurl = Model })%&gt;&lt;br /&gt;
    &lt;%Html.ActionLink("Link two", "Index", 
           new { str = Model.Str, chr = Model.Chr, dbl = Model.Dbl })%&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is this possible with the model binding infrastructure?  And if so, what needs to be done to my samples to get them working?</p>