MVC model boolean display yes or no
In your view:
@(item.isTrue?"Yes":"No")
You could use a custom html helper extension method like this:
@Html.YesNo(item.IsTrue)
Here is the code for this:
public static MvcHtmlString YesNo(this HtmlHelper htmlHelper, bool yesNo)
{
var text = yesNo ? "Yes" : "No";
return new MvcHtmlString(text);
}
This way you could re-use it throughout the site with a single line of Razor code.