title: Create custom Helper in ASP NET MVC 3 and Razor
body: <p>I am creating a helper with ASP NET MVC 3 and Razor to display my grid</p>
  
  <pre><code>@helper ListaPessoa(IEnumerable&lt;TesteHelpersMV3.Models.PessoaModel&gt; listaPessoa) 
  {    
      &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;&lt;/th&gt;
          &lt;th&gt;Nome&lt;/th&gt;
          &lt;th&gt;Endereco&lt;/th&gt;
          &lt;th&gt;DataNascimento&lt;/th&gt;
      &lt;/tr&gt;
  
      @foreach (var item in listaPessoa)
      {
          &lt;tr&gt;
              &lt;td&gt;
                  @Html.ActionLink("Edit", "Edit", new { id = item.Nome }) |
                  @Html.ActionLink("Details", "Details", new { id = item.Nome }) |
                  @Html.ActionLink("Delete", "Delete", new { id = item.Nome })
              &lt;/td&gt;
              &lt;td&gt;@item.Nome&lt;/td&gt;
              &lt;td&gt;@item.Endereco&lt;/td&gt;
              &lt;td&gt;@item.Cidade&lt;/td&gt;
          &lt;/tr&gt;
      }
  
      &lt;/table&gt;
  }
  </code></pre>
  
  <p>but the Razor can not find @Html.ActionLink and the following error occurs</p>
  
  <p>Compiler Error Message: CS1061: 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)</p>
  
  <p>what is wrong? ?? how to solve this problem??</p>
  
  <p>Thank You</p>
  
  <p>Leandro Prado</p>