I'm new to Mvc and I'm having an image that can have a correct or wrong image depending on the answer the user gives.
This is my current code:
@if (Model.IsCorrect)
{
<img src="@Url.Content(@"~/Content/images/Default_Correct.png")" alt="correct" />
}
else
{
<img src="@Url.Content(@"~/Content/images/Default_Wrong.png")" alt="wrong" />
}
This works perfectly but I think there must be a much cleaner/better way to do something like this.