title: Pass model property to Html.ActionLink
body: <p>Edit: I found the answer, but it meant abandoning the use of HtmlActionlink in favor of doing this (the "blah" parameters from my original post now being subbed in for what I actually needed):</p>
  
  <pre><code>&lt;a href="@Url.Action("LinkedDetails", 
                       new 
                           { 
                             controller = "LGDetails", 
                             findByString = item.AccounNumber
                           })"&gt;@item.LastName&lt;/a&gt;
  </code></pre>
  
  <p>This does exactly what I want.  Trying to accomplish the same thing with HtmlActionLink results in one error or another no matter what I tried: </p>
  
  <pre><code>@Html.ActionLink(item.LastName, 
                   "../LGDetails/LinkedDetails", 
                   new 
                      { 
                        controller = "LinkedDetails", 
                        findByString = item.AccounNumber 
                      }) 
  </code></pre>
  
  <p>result: Value cannot be null or empty.
  Parameter name: linkText </p>
  
  <p>Trying like this:</p>
  
  <pre><code>@Html.ActionLink(Model.LastName  .....
  </code></pre>
  
  <h2>Result:</h2>
  
  <blockquote>
    <blockquote>
      <p>System.Collections.Generic.IEnumerable' does not contain a definition for 'LastName' and no extension method 'LastName' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?)</p>
    </blockquote>
  </blockquote>
  
  <p>etc etc.  Always one of those errors regardless. </p>
  
  <p>And yes, I tried every single thing suggested here, and an equal number of other things found elsewhere (which is how I found the answer I did use, it was posted by another person having the same problem).</p>
  
  <hr>
  
  <p>Despite a lot of searching, I can't seem to figure out how to do what seems like it should be basic.</p>
  
  <p>This works fine:</p>
  
  <pre><code>@Html.DisplayFor(modelItem =&gt; item.LastName)
  </code></pre>
  
  <p>But I want to display the LastName field as the linked text inside an Html.ActionLink like this:</p>
  
  <pre><code>@Html.ActionLink(item.LastName, "blah", "blah")
  </code></pre>
  
  <p>But nothing works.  Doing it like the above gives me a compilation error:</p>
  
  <blockquote>
    <p>The type arguments for method
    'System.Web.Mvc.Html.DisplayExtensions.DisplayFor(System.Web.Mvc.HtmlHelper,
    System.Linq.Expressions.Expression>)'
    cannot be inferred from the usage. Try specifying the type arguments
    explicitly</p>
  </blockquote>
  
  <p>I've tried it like this:</p>
  
  <pre><code>@Html.ActionLink(@Html.DisplayFor(modelItem =&gt; item.LastName), "blah", "blah")
  </code></pre>
  
  <p>and other variations thereof where it is nested.  That doesn't work either (won't compile) with the error "no overload method for actionlink.."</p>
  
  <p>I feel like this should be simple.  Yes, I'm very new to C# and MVC.</p>