2023-04-09 19:28:29 +04:00
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Orders";
|
|
|
|
}
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h2>Список обедов</h2>
|
|
|
|
<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-04-09 19:28:29 +04:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Номер</th>
|
|
|
|
<th>Описание обеда</th>
|
|
|
|
<th>Сумма</th>
|
2023-05-19 03:39:58 +04:00
|
|
|
<th>Название прибора</th>
|
|
|
|
<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>
|
|
|
|
<td>@order.Sum</td>
|
|
|
|
<td>@order.TablewareName</td>
|
|
|
|
<td>@order.CountTablewares</td>
|
|
|
|
</tr>
|
2023-04-09 19:28:29 +04:00
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</body>
|