title: HttpContext in Razor Views
body: <p>I tried to port some ASPX markup to Razor, but compiler threw an error.</p>
  
  <p>ASPX (works fine):</p>
  
  <pre><code>&lt;% if (node.IsAccessibleToUser(Context)) { %&gt;
      // markup
  &lt;% } %&gt;
  </code></pre>
  
  <p>CSHTML (throws an error):</p>
  
  <pre><code>@if (node.IsAccessibleToUser(Context)) {
      // markup
  }
  </code></pre>
  
  <p>Argument 1: cannot convert from 'System.Web.HttpContextBase' to 'System.Web.HttpContext'</p>
  
  <p>How to get reference to <code>HttpContext</code> in Razor view? Is it correct to use <code>HttpContext.Current</code> or I need to check site map node visibility in a different way?</p>