title: How to access HttpContext from controller in ASP.NET mvc
body: <p>In asp.net how do i get the current httpcontext for the page that i am on?</p>
  
  <p>i have tried giving the relevant controller the httpcontext as an argument, but this does not work. I have found plenty of people describing how to specify the object , but i simply cannot find any info on how the httpcontext should be added to the controller (like, in a argument or so)</p>
  
  <p>this does not work</p>
  
  <pre><code>    public class MovieController : Controller
      {
              public ActionResult Random(HttpContext mycontext)
          {
  
              RandomMovieViewmodel rmvm = new RandomMovieViewmodel();
  
  
              return View(rmvm);
          }
  </code></pre>
  
  <p>How do i acces the context? should I maybe make a attribute?</p>