2023-04-06 20:25:46 +04:00
|
|
|
@using HotelContracts.ViewModels
|
|
|
|
|
|
|
|
|
|
|
|
@model List<DinnerViewModel>
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "FormationDinner";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Форматирование обедов</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
if (Model == null)
|
|
|
|
{
|
|
|
|
<h3 class="display-4">Авторизируйтесь</h3>
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<a asp-action="Create">Создать заказ</a>
|
|
|
|
</p>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Номер
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Имя
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Цена
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Id)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.DinnerName)
|
|
|
|
</td>
|
|
|
|
<td>
|
2023-04-07 00:16:35 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.DinnerPrice)
|
2023-04-06 20:25:46 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
</div>
|