title: Can we use ToString() or ternary operator with html helper in ASP.Net MVC
body: <p>see the code</p>
  
  <pre><code>&lt;div class="editor-field"&gt;
      @Html.EditorFor(model =&gt; model.Id)
  &lt;/div&gt;
  </code></pre>
  
  <p>when i try to do it <code>@Html.EditorFor(model =&gt; model.Id.ToString())</code> then i was getting error. what was wrong to use <code>ToString()</code> in view ?</p>
  
  <p>in view can we check null or <code>ternary operator</code> if null then return something else. show me few code sample. some one told me it is not possible rather all i need to do in model class. looking for guide line. thanks</p>