I have a model that I have little control over. It has a string property called Pass that contains a "1" to represent a pass, and a "0" to represent a fail.
I also have a display template that replaces boolean properties with a particular image, depending if the boolean value is true or false.
When I try to use @Html.DisplayFor(c => (c.Pass == "1")) in my Razor template, I get a
System.InvalidOperationException: Templates can be used only with field access, property access, single-dimension array index or single parameter custom indexer expressions.
How can I modify my view so that c.Pass == "1" is interpreted as a true value, and make use of the boolean display template that is available to me.