48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
@model IEnumerable<ThAmCo.Events.Data.GuestBooking>
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h2>Index</h2>
|
|
|
|
<p>
|
|
<a asp-action="Create">Create New</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Customer)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Event)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Attended)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Customer.Email)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Event.Title)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Attended)
|
|
</td>
|
|
<td>
|
|
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
|
|
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
|
|
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|