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"; +} +