2023-04-02 01:17:44 +04:00
|
|
|
@using BankYouBankruptContracts.ViewModels
|
|
|
|
|
|
|
|
@model List<AccountViewModel>
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Home Page";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Счета</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
2023-05-17 00:06:05 +04:00
|
|
|
if (Model == null)
|
|
|
|
{
|
|
|
|
<h3 class="display-4">Сначала авторизируйтесь</h3>
|
|
|
|
return;
|
|
|
|
}
|
2023-04-02 01:17:44 +04:00
|
|
|
<p>
|
|
|
|
<a asp-action="Create">Открыть счёт</a>
|
|
|
|
</p>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Номер счёта
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Имя владельца
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Отчество владельца
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Балланс
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Дата открытия
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2023-05-17 00:06:05 +04:00
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.AccountNumber)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Name)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Patronymic)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.Balance)
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@Html.DisplayFor(modelItem => item.DateOpen)
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
2023-04-02 01:17:44 +04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
</div>
|