This commit is contained in:
shadowik 2023-05-19 01:22:37 +04:00
parent 23e1580c93
commit 5e2ca64d2f
2 changed files with 2 additions and 6 deletions

View File

@ -218,11 +218,7 @@ namespace BankYouBankruptClientApp.Controllers
return Redirect("~/Home/Enter");
}
ViewBag.Cards = APIClient.GetRequest<List<CardViewModel>>($"api/Card/GetAllCards").Select(x => new ClientSelectViewModel
{
Id = x.Id,
FullName = x.ClientSurname + " " + x.Number.ToString()
}).ToList();
ViewBag.Cards = View(APIClient.GetRequest<List<CreditingViewModel>>($"api/Client/getUsersCreditings?userId={APIClient.Client.Id}"));
return View();
}

View File

@ -9,7 +9,7 @@
<div class="row">
<div class="col-4">Номер счета:</div>
<div class="col-8">
<select id="cardId" name="cardId" class="form-control" asp-items="@(new SelectList( @ViewBag.Cards, "Id", "FullName"))"></select>
<select id="cardId" name="cardId" class="form-control" asp-items="@(new SelectList( @ViewBag.Cards, "Id", "Number"))"></select>
</div>
</div>
<div class="row">