@model IEnumerable @{ ViewData["Title"] = "Index"; }

Index

Create New

@foreach (var item in Model) { }
@Html.DisplayNameFor(model => model.Customer) @Html.DisplayNameFor(model => model.Event) @Html.DisplayNameFor(model => model.Attended)
@Html.DisplayFor(modelItem => item.Customer.Email) @Html.DisplayFor(modelItem => item.Event.Title) @Html.DisplayFor(modelItem => item.Attended) @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) | @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) | @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })