2023-04-25 10:31:41 +04:00
|
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
|
|
@model List<SushiBarContracts.ViewModels.StoreViewModel>
|
|
|
|
|
|
|
|
@{
|
2023-04-25 08:27:59 +04:00
|
|
|
ViewData["Title"] = "Home Page";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
2023-04-25 10:31:41 +04:00
|
|
|
<h1 class="display-4">Stores</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<a asp-action="Create">Create</a>
|
|
|
|
<a asp-action="Update">Edit</a>
|
|
|
|
<a asp-action="Delete">Delete</a>
|
|
|
|
<a asp-action="Supply">Supply</a>
|
|
|
|
</p>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Name
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Address
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Date opening
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Max sushi
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.StoreName)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.StoreAddress)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.OpeningDate)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.maxSushi)
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
2023-04-25 08:27:59 +04:00
|
|
|
</div>
|