2023-04-09 19:28:29 +04:00
|
|
|
@{
|
|
|
|
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)
|
|
|
|
{
|
2023-05-14 22:24:37 +04:00
|
|
|
<tr>
|
|
|
|
<td>@cook.Id</td>
|
|
|
|
<td>@cook.VisitorId</td>
|
|
|
|
<td>@cook.TablewareName</td>
|
|
|
|
</tr>
|
2023-04-09 19:28:29 +04:00
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</body>
|