title: How to create global helper functions?
body: <p>I want to create some global helper functions.
  I understood that i must place them in a .cshtml file in App_Code.
  I created this file:</p>
  
  <pre><code>@helper CreatePostForm(string action, string controller, string id, params string[] hiddens)
  {       
      using (BeginForm(action, controller, System.Web.Mvc.FormMethod.Post, new { id = id }))
      {
          @Html.AntiForgeryToken()
          foreach(string hidden in hiddens)
          {
              @Html.Hidden(hidden)   
          }
      }
  }
  </code></pre>
  
  <p>The problem is that <code>BeginForm</code> and <code>AntiForgeryToken</code> methods are nor recognized.
  How to make it right?</p>
  
  <p>PS: i am using .net 4.5, asp.net mvc 4 </p>