title: mvc : Pass data from Models to cshtml Asp .net MVC
body: <p>I just want to check the data from Models in View module (I.e.<code>CSHTML</code>) and my trying is like this</p>
  
  <pre><code>@model CCG.Models.RatingConverter
          &lt;table&gt;
              &lt;tbody&gt;
                  &lt;tr&gt;
                     @if (Model.ToString()!="A")
                      {
                      &lt;td class="row" &gt;&lt;%- Rating %&gt;&lt;/td&gt;
                      }
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;    
  </code></pre>
  
  <p>I get <code>Null Reference Exception</code>error.. So please any one know..</p>