Change row color depend on condition in razor syntaxHi.
I have one page where I written below code.
@foreach (var item in Model)
@Html.DisplayFor(modelItem => item.NotificationType)
@Html.DisplayFor(modelItem => item.NextActionTaker)
Here, I want to change row color by adding condition while creating <tr>.
I have written if else statement which was not working properly.