title: MVC Easy util in view?
body: <p>I am using asp.net MVC 4, I'd like to do something like this in my view</p>
  
  <pre><code>&lt;a href=@NamespaceHere.StaticUtil.TheFunctionIUseAlot("/blah", 1, Viewbag, "link and view specific") class="thing"&gt;my link&lt;/a&gt;
  </code></pre>
  
  <p>I don't like it. Is there a way I can have the namespace implicit? Can I not pass in Viewbag and grab it somehow like global.request.current.viewbag?</p>
  
  <p>If it helps I don't need TheFunctionIUseAlot to be static. I just need it to be easily callable in all my views and hopefully i'd like to not pass in viewbag. The reason I pass viewbag is because i need something in the controller which i stuck in viewbag as well. Maybe i can put it in the model but i don't want the same problem where i am passing model instead of viewbag</p>