@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>