diff --git a/Bank/BankClientApp/Controllers/HomeController.cs b/Bank/BankClientApp/Controllers/HomeController.cs index ace2fe7..13c10b2 100644 --- a/Bank/BankClientApp/Controllers/HomeController.cs +++ b/Bank/BankClientApp/Controllers/HomeController.cs @@ -173,7 +173,7 @@ namespace BankClientApp.Controllers return Redirect("~/Home/Enter"); } - return View(APIClient.GetRequest>($"api/Card/GetUsersCardsList?id={APIClient.Client.Id}")); + return View(APIClient.GetRequest>($"api/Card/GetClientsCardsList?id={APIClient.Client.Id}")); } [HttpGet] @@ -184,7 +184,7 @@ namespace BankClientApp.Controllers return Redirect("~/Home/Enter"); } - ViewBag.Accounts = APIClient.GetRequest>($"api/Account/SearchAccountsOfCLient?clientId={APIClient.Client.Id}"); + ViewBag.Accounts = APIClient.GetRequest>($"api/Account/SearchAccountsOfClient?clientId={APIClient.Client.Id}"); return View(); } diff --git a/Bank/BankClientApp/Views/Home/Cards.cshtml b/Bank/BankClientApp/Views/Home/CardsList.cshtml similarity index 100% rename from Bank/BankClientApp/Views/Home/Cards.cshtml rename to Bank/BankClientApp/Views/Home/CardsList.cshtml diff --git a/Bank/BankClientApp/Views/Home/CreateCard.cshtml b/Bank/BankClientApp/Views/Home/CreateCard.cshtml index 4424d9d..881299f 100644 --- a/Bank/BankClientApp/Views/Home/CreateCard.cshtml +++ b/Bank/BankClientApp/Views/Home/CreateCard.cshtml @@ -7,15 +7,15 @@
-
Клиент:
+
Номер счёта:
- +
Номер карты:
- +
@@ -49,6 +49,8 @@ return str; } - document.getElementById("CardNumber").value = createNum(16); - document.getElementById("password").value = createNum(4); + document.getElementById("cardnumber").value = createNum(16); + let year = new Date(); + year.setFullYear(year.getFullYear() + 5) + document.getElementById("period").valueAsDate = new Date(year); \ No newline at end of file diff --git a/Bank/BankClientApp/Views/Shared/_Layout.cshtml b/Bank/BankClientApp/Views/Shared/_Layout.cshtml index adb352f..86a762d 100644 --- a/Bank/BankClientApp/Views/Shared/_Layout.cshtml +++ b/Bank/BankClientApp/Views/Shared/_Layout.cshtml @@ -23,7 +23,7 @@