CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopClientApp/Views/Home/Index.cshtml

45 lines
693 B
Plaintext
Raw Permalink Normal View History

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:23:26 +04:00
<h1 class="display-4">Товары</h1>
2024-04-29 23:20:48 +04:00
</div>
<div class="text-center">
@{
if (Model == null) {
<h3 class="display-4">Авторизируйтесь</h3>
return;
}
<p>
2024-04-29 23:23:26 +04:00
<a asp-action="Create">Каталог</a>
2024-04-29 23:20:48 +04:00
</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>