2024-04-29 23:20:48 +04:00
|
|
|
@using ElectronicsShopContracts.ViewModels
|
|
|
|
|
|
|
|
@model List<ProductViewModel>
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Home Page";
|
2024-04-29 22:10:50 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
2024-04-29 23:20:48 +04:00
|
|
|
<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>
|
|
|
|
<th>
|
|
|
|
цена
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
2024-04-29 22:10:50 +04:00
|
|
|
</div>
|