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>
|
2023-05-19 03:39:58 +04:00
|
|
|
<button type="button" class="btn btn-danger" onclick="location.href='@Url.Action("DeleteTableware", "Home")'">Удалить прибор</button>
|
|
|
|
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("UpdateTableware", "Home")'">Обновить прибор</button>
|
2023-04-09 19:28:29 +04:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<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.TablewareName</td>
|
|
|
|
</tr>
|
2023-04-09 19:28:29 +04:00
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</body>
|