@model IEnumerable @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_AdminLayout.cshtml"; }

Index

@Html.ActionLink("Create New", "Create")

All Products

@foreach (var item in Model) { }
ID Name Price Actions
@item.ProductID @Html.ActionLink(item.Name, "Edit", new { item.ProductID }) @item.Price.ToString("c") @using (Html.BeginForm("Delete", "Admin")) { @Html.Hidden("ProductID", item.ProductID) }