PIbd-21_BatylkinaAO_MusoevD.../Canteen/CanteenVisitorApp/Views/Home/Tablewares.cshtml
2023-05-14 22:24:37 +04:00

30 lines
1.2 KiB
Plaintext

@{
ViewData["Title"] = "Tablewares";
}
<body>
<div class="container">
<h2>Список приборов</h2>
<button type="button" class="btn btn-info" onclick="location.href='@Url.Action("CreateTableware", "Home")'">Добавить прибор</button>
<button type="button" class="btn btn-danger" onclick="location.href='@Url.Action("CreateTableware", "Home")'">Удалить прибор</button>
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("CreateTableware", "Home")'">Обновить прибор</button>
<table class="table">
<thead>
<tr>
<th>Номер</th>
<th>Номер посетителя</th>
<th>Название прибора</th>
</tr>
</thead>
<tbody>
@foreach (var cook in ViewBag.Tablewares)
{
<tr>
<td>@cook.Id</td>
<td>@cook.VisitorId</td>
<td>@cook.TablewareName</td>
</tr>
}
</tbody>
</table>
</div>
</body>