title: ASP.NET MVC Razor: Ternary
body: <p>Having a little bit of trouble figuring out using a ternary with Razor view engine.</p>
  
  <p>My model has a string property. If that string property is null, I want to render <code>null</code> in the view. If the property is not null, I want it to render the property value with a leading and trailing <code>'</code>.</p>
  
  <p>How can I do this?</p>
  
  <p>UPDATE: Sorry, changed question slightly.</p>