hello,
i have this razor syntax with model when i add image tag it does not work when i add displayfor tag it works please advice thanks
@foreach (var item in Model) {
//this works
@Html.DisplayFor(modelItem => item.Image)
//but this does not work gives error in binding
<img src="@Url.Content(item.Image)" alt="Image" />
}