I am very new to ASP.Net / MVC . I have created a View that I am populating from a model. I am creating a rows for each item in the model to show their properties/attributes of model item.
One of the member is a bool , name is Staged. In the View I want to display it as Yes if true or No if false. The user will only be able to read it, so simple text Yes/No shall be sufficient.
I am using the following code in the cshtml
<td>
@Html.DisplayFor(modelItem => item.Staged)
</td>
This however shows a checkbox in the place, how can I show it as Yes/No ?
Thanks,