title: how to access session in model asp.net mvc
body: <p>How can I access to the session from the Model?</p>
  
  <p>I try to use:</p>
  
  <pre><code>public IQueryable&lt;EstudentsViewModel&gt; GetEstudentsProjected(decimal? Code)
          {
             .
             .   
             .
             decimal id;
             id = (decimal)Session["Consul"];
             .
             .
             .
          }
  </code></pre>
  
  <p>Appear: <strong>The name 'Session' does not exist in the current context</strong></p>