title: Shifting @helper code to App_Code folder throwing error
body: <p>I have a <code>@heper pagination</code> function. That is having two View helper <code>ViewBag</code> and <code>Url</code>.
  This pagination is going to be used by so many pages so i shift the code from <code>Views</code> folder 
  to <code>App_Code</code> folder. Code inside <code>App_Code/Helper.cshtml</code></p>
  
  <pre><code>@helper buildLinks(int start, int end, string innerContent)
  {
       for (int i = start; i &lt;= end; i++)
       {   
           &lt;a class="@(i == ViewBag.CurrentPage ? "current" : "")" href="@Url.Action("index", "country", new { page = i })"&gt;@(innerContent ?? i.ToString())&lt;/a&gt;
       }   
  }
  </code></pre>
  
  <p>But now when I run the app. it throws error</p>
  
  <pre><code>error CS0103:The name 'ViewBag' does not exist in the current context
  error CS0103:The name 'Url' does not exist in the current context
  </code></pre>
  
  <p>Do I need to import any namespace or where the problem is?</p>
  
  <p>The way I want to do is perfect?</p>