From 5e2ca64d2feac8ab9871b24b8186dfd32e2d8b67 Mon Sep 17 00:00:00 2001 From: shadowik Date: Fri, 19 May 2023 01:22:37 +0400 Subject: [PATCH] , --- .../BankYouBankruptClientApp/Controllers/HomeController.cs | 6 +----- .../Views/Home/CreateCrediting.cshtml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/BankYouBankrupt/BankYouBankruptClientApp/Controllers/HomeController.cs b/BankYouBankrupt/BankYouBankruptClientApp/Controllers/HomeController.cs index b4035b6..98eb473 100644 --- a/BankYouBankrupt/BankYouBankruptClientApp/Controllers/HomeController.cs +++ b/BankYouBankrupt/BankYouBankruptClientApp/Controllers/HomeController.cs @@ -218,11 +218,7 @@ namespace BankYouBankruptClientApp.Controllers return Redirect("~/Home/Enter"); } - ViewBag.Cards = APIClient.GetRequest>($"api/Card/GetAllCards").Select(x => new ClientSelectViewModel - { - Id = x.Id, - FullName = x.ClientSurname + " " + x.Number.ToString() - }).ToList(); + ViewBag.Cards = View(APIClient.GetRequest>($"api/Client/getUsersCreditings?userId={APIClient.Client.Id}")); return View(); } diff --git a/BankYouBankrupt/BankYouBankruptClientApp/Views/Home/CreateCrediting.cshtml b/BankYouBankrupt/BankYouBankruptClientApp/Views/Home/CreateCrediting.cshtml index cbb5189..d67cbfd 100644 --- a/BankYouBankrupt/BankYouBankruptClientApp/Views/Home/CreateCrediting.cshtml +++ b/BankYouBankrupt/BankYouBankruptClientApp/Views/Home/CreateCrediting.cshtml @@ -9,7 +9,7 @@
Номер счета:
- +