@model IEnumerable @{ ViewBag.Title = "Index"; }

Index

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

@foreach (var item in Model) { }
@Html.DisplayNameFor(model => model.Artist.Name) @Html.DisplayNameFor(model => model.Genre.Name) @Html.DisplayNameFor(model => model.Title) @Html.DisplayNameFor(model => model.Price) @Html.DisplayNameFor(model => model.AlbumArtUrl)
@Html.DisplayFor(modelItem => item.Artist.Name) @Html.DisplayFor(modelItem => item.Genre.Name) @Html.DisplayFor(modelItem => item.Title) @Html.DisplayFor(modelItem => item.Price) @Html.DisplayFor(modelItem => item.AlbumArtUrl) @Html.ActionLink("Edit", "Edit", new { id=item.AlbumId }) | @Html.ActionLink("Details", "Details", new { id=item.AlbumId }) | @Html.ActionLink("Delete", "Delete", new { id=item.AlbumId })