MVC model boolean display yes or no
asp.net, asp.net-mvc, asp.net-mvc-4, c#, razor
Solution
In your view:
@(item.isTrue?"Yes":"No")
Problem
i have a boolean field in my model in mvc 4 entity framework 4.5 i want to display the field in my view i use this call ``` @item.isTrue ``` but i got true or false, i want to get yes when true and no when false what should i do please?