public FileContentResult DisplayImage(string id) { byte[] image = repository.GetImage(id); return File(image, "image/jpg"); }
<td><img src="<%= Url.Action( "DisplayImage" , "User" , new { id = item.id} ) %>" alt="" /></td>