64 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2024-05-30 07:33:38 +04:00
@using VeterinaryContracts.ViewModels
@model List<VisitViewModel>
@{
ViewData["Title"] = "Visits";
}
<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="CreateVisit">Создать визит</a>
<a asp-action="UpdateVisit">Изменить визит</a>
<a asp-action="DeleteVisit">Удалить визит</a>
</p>
<table class="table">
<thead>
<tr>
<th>
Номер
</th>
<th>
Название
</th>
<th>
Врач
</th>
<th>
Дата визита
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem =>
item.Id)
</td>
<td>
@Html.DisplayFor(modelItem =>
item.VisitName)
</td>
<td>
@Html.DisplayFor(modelItem =>
item.DoctorName)
</td>
<td>
@Html.DisplayFor(modelItem =>
item.DateVisit)
</td>
</tr>
}
</tbody>
</table>
}
</div>