I am trying to display different messages based on data from the status table. Say, for example, if my statusid is 1120, then I would like to display "PASS", but I'm afraid with the correct syntax.
If statusid = 1120, then "PASS".
Here is my code to display the status:
@Html.DisplayFor(modelItem => item.statusid)
Any idea?
source
share