28 lines
1.1 KiB
Plaintext
28 lines
1.1 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("DeleteTableware", "Home")'">Удалить прибор</button>
|
|
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("UpdateTableware", "Home")'">Обновить прибор</button>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Номер</th>
|
|
<th>Название прибора</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var cook in ViewBag.Tablewares)
|
|
{
|
|
<tr>
|
|
<td>@cook.Id</td>
|
|
<td>@cook.TablewareName</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body> |