CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopClientApp/Views/Home/Index.cshtml
Илья Федотов ae4b327648 mamma mia
2024-04-29 23:34:17 +04:00

45 lines
693 B
Plaintext

@using ElectronicsShopContracts.ViewModels
@model List<ProductViewModel>
@{
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>
<a asp-action="Create">Каталог</a>
</p>
<table class="table">
<thead>
<tr>
<th>
Номер
</th>
<th>
категория товара
</th>
<th>
название
</th>
<th>
цена
</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
}
</div>