ManagerClientApp in process

This commit is contained in:
Zakharov_Rostislav 2024-05-01 13:30:16 +04:00
parent 60927a84cf
commit 855681d65e
2 changed files with 64 additions and 0 deletions

View File

@ -22,6 +22,12 @@ namespace BankManagersClientApp.Controllers
return View();
}
[HttpGet]
public IActionResult Enter()
{
return View();
}
public IActionResult Privacy()
{
return View();

View File

@ -0,0 +1,58 @@
@using BankContracts.ViewModels
@model List<OperationViewModel>
@{
ViewData["Title"] = "Transfers";
}
<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="OperationCreate">Создать перевод</a>
</p>
<table class="table">
<thead>
<tr>
<th>Номер</th>
<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.Sum)
</td>
<td>
@Html.DisplayFor(modelItem =>
item.OperationTime)
</td>
<td>
@Html.DisplayFor(modelItem =>
item.SenderCardNumber)
</td>
<td>
@Html.DisplayFor(modelItem =>
item.RecipientCardNumber)
</td>
</tr>
}
</tbody>
</table>
}
</div>