@using ComputerHardwareStoreContracts.ViewModels @model List<BuildViewModel> @{ ViewData["Title"] = "Builds"; } <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 class="text-decoration-none me-3 text-black h5" asp-action="BuildCreate">Создать сборку</a> <a class="text-decoration-none me-3 text-black h5" asp-action="BuildUpdate">Изменить сборку</a> <a class="text-decoration-none text-black h5" asp-action="BuildDelete">Удаление магазина</a> </p> <table class="table"> <thead> <tr> <th> Номер </th> <th> Название </th> <th> Цена </th> </tr> </thead> <tbody> @foreach (var build in Model) { <tr> <td> @Html.DisplayFor(modelItem => build.Id) </td> <td> @Html.DisplayFor(modelItem => build.Name) </td> <td> @Html.DisplayFor(modelItem => build.Price) </td> </tr> } </tbody> </table> } </div>