From a7b6812a9ffa41d22b423f9f982672612b2d2ec9 Mon Sep 17 00:00:00 2001 From: ksenianeva <95441235+ksenianeva@users.noreply.github.com> Date: Fri, 19 May 2023 22:55:03 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=B5=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B?= =?UTF-8?q?=D0=B5=20View=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B8:=20=D0=B2?= =?UTF-8?q?=D1=85=D0=BE=D0=B4,=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B0,=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D1=8F,=20=D0=BA=D1=80=D0=B5=D0=B4=D0=B8=D1=82=D0=BD=D1=8B?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC=D1=8B?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 10 +-- .../Views/Home/CreditProgram.cshtml | 32 +++++++++ .../Views/Home/CreditPrograms.cshtml | 5 ++ .../Views/Home/CurrencyPurchases.cshtml | 68 +++++++++++++++++++ Bank/BankOperatorApp/Views/Home/Enter.cshtml | 21 ++++++ Bank/BankOperatorApp/Views/Home/Index.cshtml | 55 ++++++++++++++- .../BankOperatorApp/Views/Home/Privacy.cshtml | 40 +++++++++-- .../Views/Home/Register.cshtml | 33 +++++++++ 8 files changed, 252 insertions(+), 12 deletions(-) create mode 100644 Bank/BankOperatorApp/Views/Home/CreditProgram.cshtml create mode 100644 Bank/BankOperatorApp/Views/Home/CreditPrograms.cshtml create mode 100644 Bank/BankOperatorApp/Views/Home/CurrencyPurchases.cshtml create mode 100644 Bank/BankOperatorApp/Views/Home/Enter.cshtml create mode 100644 Bank/BankOperatorApp/Views/Home/Register.cshtml diff --git a/Bank/BankOperatorApp/Controllers/HomeController.cs b/Bank/BankOperatorApp/Controllers/HomeController.cs index f1bbd49..747bbe5 100644 --- a/Bank/BankOperatorApp/Controllers/HomeController.cs +++ b/Bank/BankOperatorApp/Controllers/HomeController.cs @@ -218,7 +218,7 @@ namespace BankOperatorApp.Controllers return View(); } [HttpPost] - public void CreateCurrencyPurchasr(string amount, int currencyId) + public void CreateCurrencyPurchase(string amount, int currencyId) { if (APIClient.BankOperator == null) { @@ -226,10 +226,12 @@ namespace BankOperatorApp.Controllers } _currencyPurchaseLogic.Create(new CurrencyPurchaseBindingModel - { BankOperatorId = APIClient.BankOperator.Id, + { BankOperatorId = APIClient.BankOperator.Id, Amount = (float)Convert.ToDouble(amount), - CurrencyId = currencyId }); - Response.Redirect("Transfers"); + CurrencyId = currencyId, + + }); + Response.Redirect("CurrencyPurchases"); } } } \ No newline at end of file diff --git a/Bank/BankOperatorApp/Views/Home/CreditProgram.cshtml b/Bank/BankOperatorApp/Views/Home/CreditProgram.cshtml new file mode 100644 index 0000000..02be98c --- /dev/null +++ b/Bank/BankOperatorApp/Views/Home/CreditProgram.cshtml @@ -0,0 +1,32 @@ +@using BankContracts.ViewModels + +@model CreditProgramViewModel + +@{ + ViewData["Title"] = "CreditProgram"; +} + +
+ Купить валюту +
++ Номер покупки + | ++ Дата покупки + | ++ Название валюты + | ++ Количество валюты + | ++ ФИО оператора + | +
---|---|---|---|---|
+ @Html.DisplayFor(modelItem => item.Id) + | ++ @Html.DisplayFor(modelItem => item.PurchaseDate ) + | ++ @Html.DisplayFor(modelItem => item.CurrencyName) + | ++ @Html.DisplayFor(modelItem => item.Amount) + | ++ @Html.DisplayFor(modelItem => item.BankOperatorName) + | +
+ Создать валюту +
++ Номер + | ++ Название валюты + | ++ ФИО оператора + | +
---|---|---|
+ @Html.DisplayFor(modelItem => item.Id) + | ++ @Html.DisplayFor(modelItem => item.Name) + | ++ @Html.DisplayFor(modelItem => item.BankOperatorName) + | +
Use this page to detail your site's privacy policy.
+@model BankOperatorViewModel + +@{ + ViewData["Title"] = "Privacy Policy"; +} +