49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
|
@model ThAmCo.Events.Models.ViewModels.Events.EventAddCustomerModel
|
||
|
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "AddCustomer";
|
||
|
}
|
||
|
|
||
|
<h2>AddCustomer</h2>
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Customer.FirstOrDefault().Surname)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Customer.FirstOrDefault().FirstName)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Customer.FirstOrDefault().Email)
|
||
|
</th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var item in Model.Customer)
|
||
|
{
|
||
|
<tr>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Surname)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.FirstName)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Email)
|
||
|
</td>
|
||
|
<td>
|
||
|
<form asp-action="AddCustomer">
|
||
|
<input type="hidden" asp-for="EventId" />
|
||
|
@Html.Hidden("EventID", Model.EventId)
|
||
|
@Html.Hidden("CustomerID", item.Id)
|
||
|
<input type="submit" value="Select" />
|
||
|
</form>
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|