ManagerClientApp in process
This commit is contained in:
parent
60927a84cf
commit
855681d65e
@ -22,6 +22,12 @@ namespace BankManagersClientApp.Controllers
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult Enter()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult Privacy()
|
||||
{
|
||||
return View();
|
||||
|
58
Bank/BankManagersClientApp/Views/Home/Transfers.cshtml
Normal file
58
Bank/BankManagersClientApp/Views/Home/Transfers.cshtml
Normal 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>
|
Loading…
Reference in New Issue
Block a user