I have this foreach loop pulling images from my db :
`@foreach (var item in model)
<tr>
<td>
<img width="50" height="50" src="@Url.Action("GetImage", "Product", new { item.ProductId})"/>
</td>
...`
I tried to wrap it in an 'a' tag but all I get is 404's.
<a href = "~/..."> <img width="".../></a>
Any ideas?
<a href="~/Views/Shared/_index"><img...></a>. I've tried other views but can't seem to get it to display.<a href="@Url.Action("Action", "Controller")"><img /></a>