2023-04-09 19:28:29 +04:00
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Orders";
|
|
|
|
}
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
2023-05-20 00:18:48 +04:00
|
|
|
<h2>Список заказов</h2>
|
2023-04-09 19:28:29 +04:00
|
|
|
<button type="button" class="btn btn-info" onclick="location.href='@Url.Action("CreateOrder", "Home")'">Добавить заказ</button>
|
2023-05-19 03:39:58 +04:00
|
|
|
<button type="button" class="btn btn-danger" onclick="location.href='@Url.Action("DeleteOrder", "Home")'">Удалить заказ</button>
|
|
|
|
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("UpdateOrder", "Home")'">Обновить заказ</button>
|
2023-05-20 00:18:48 +04:00
|
|
|
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("OrderAddTablewares", "Home")'">Привязать прибор</button>
|
|
|
|
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("OrderAddCooks", "Home")'">Привязать повара</button>
|
2023-04-09 19:28:29 +04:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Номер</th>
|
2023-05-20 00:18:48 +04:00
|
|
|
<th>Описание заказа</th>
|
2023-04-09 19:28:29 +04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2023-05-19 03:39:58 +04:00
|
|
|
@foreach (var order in ViewBag.Orders)
|
2023-04-09 19:28:29 +04:00
|
|
|
{
|
2023-05-19 03:39:58 +04:00
|
|
|
<tr>
|
|
|
|
<td>@order.Id</td>
|
|
|
|
<td>@order.Description</td>
|
|
|
|
</tr>
|
2023-04-09 19:28:29 +04:00
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</body>
|