Views/Comics/Comics4Sale.cshtml
@model IEnumerable<MvcBootstrap.Models.Comic>
@{
ViewBag.Title = "Comic Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="container">
<table class="table table-bordered table-condensed table-hover">
@foreach (var item in Model)
{
<tr class="well">
<td style="width:140px; text-align: center;">
<div>
<a href="@Url.Action("Comic", "Home", new { id = item.ID })">
<span><img src="@Url.Content(item.ImageURL)" alt=item.ImageURL /></span>
</a>
</div>
<div style="font-weight:bold;">
@Html.ActionLink("Add to Cart", "Add2Cart", new { id = item.ID })
</div>
</td>
@*<td style="width:40px; text-align: center;">
@Html.DisplayFor(modelItem => item.ID)
</td>*@
<td style="font-weight: bold; font-size: large;">
@(item.Title + " " + item.Issue)
</td>
<td style="width: 140px; text-align: center; font-weight: bold; font-size:large;">
@string.Format("{0:C}", item.Price)
</td>
</tr>
}
</table>
</div>