title: How to use ternary operator in razor using a @Model (TimeSpan)?
body: <p>I am trying to use the ternary operator in this piece of code, where <code>Model.FirstTechSupportAssigneeElapseTime</code> is of type <code>TimeSpan?</code>:</p>
  
  <pre><code>&lt;dt&gt;Assigned In&lt;/dt&gt;
  &lt;dd&gt; 
  @if (@Model.FirstTechSupportAssigneeElapseTime == null)
       { @:N/A } 
  else 
       { @Model.FirstTechSupportAssigneeElapseTime } 
  &lt;/dd&gt;
  </code></pre>
  
  <p>I have tried to implement the the ternary operator but I am failing miserably, the @'s everywhere are confusing me. Is it possible to have a the ternary operator in this scenario? </p>
  
  <p>Thank you.</p>