2024-05-25 17:47:14 +04:00
|
|
|
@using ElectronicsShopContracts.ViewModels
|
|
|
|
|
|
|
|
@model List<OrderViewModel>
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Home Page";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Заказы</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
if (Model == null) {
|
|
|
|
<h3 class="display-4">Авторизируйтесь</h3>
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
<p>
|
2024-05-29 18:32:24 +04:00
|
|
|
<a asp-action="CreateOrder">Создать заказ</a>
|
2024-05-25 17:47:14 +04:00
|
|
|
</p>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
Номер заказа
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Дата создания
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Сумма
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in Model) {
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
@Html.DisplayFor(modelItem => item.ID)
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
@Html.DisplayFor(modelItem => item.DateCreate)
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
@Html.DisplayFor(modelItem => item.Sum)
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
</div>
|