From 35268379e41fac27649ece9ced7183521a73de75 Mon Sep 17 00:00:00 2001 From: ksenianeva <95441235+ksenianeva@users.noreply.github.com> Date: Sat, 20 May 2023 12:08:10 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D1=8F=D0=B7=D0=B0=D1=82=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20=D0=BF=D0=BE=D0=BB=D1=8F.=20?= =?UTF-8?q?=D0=9A=D1=80=D0=B0=D1=81=D0=B8=D0=B2=D1=8B=D0=B5=20=D0=BA=D0=BD?= =?UTF-8?q?=D0=BE=D0=BF=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bank/BankOperatorApp/Controllers/HomeController.cs | 8 +++++++- .../Views/Home/AddDealsToCreditProgram.cshtml | 4 ++-- .../BankOperatorApp/Views/Home/CreateCreditProgram.cshtml | 6 +++--- Bank/BankOperatorApp/Views/Home/CreateCurrency.cshtml | 2 +- .../Views/Home/CreateCurrencyPurchase.cshtml | 4 ++-- Bank/BankOperatorApp/Views/Home/CreditProgram.cshtml | 2 +- Bank/BankOperatorApp/Views/Home/CreditPrograms.cshtml | 4 ++-- .../Views/Home/CurrencyPurchasePaymentsReport.cshtml | 2 +- Bank/BankOperatorApp/Views/Home/CurrencyPurchases.cshtml | 2 +- Bank/BankOperatorApp/Views/Home/CurrencyReport.cshtml | 4 ++-- Bank/BankOperatorApp/Views/Home/Index.cshtml | 2 +- Bank/BankOperatorApp/Views/Shared/_Layout.cshtml | 2 +- 12 files changed, 24 insertions(+), 18 deletions(-) diff --git a/Bank/BankOperatorApp/Controllers/HomeController.cs b/Bank/BankOperatorApp/Controllers/HomeController.cs index 49ee135..2831b01 100644 --- a/Bank/BankOperatorApp/Controllers/HomeController.cs +++ b/Bank/BankOperatorApp/Controllers/HomeController.cs @@ -54,7 +54,9 @@ namespace BankOperatorApp.Controllers { if (HomeController.BankOperator == null) { - return Redirect("~/Home/Enter"); + Response.WriteAsync($""); + return Redirect("/Home/Enter"); } return View(HomeController.BankOperator); } @@ -172,6 +174,8 @@ namespace BankOperatorApp.Controllers { if (HomeController.BankOperator == null) { + Response.WriteAsync($""); return Redirect("~/Home/Enter"); } return View(_creditProgramLogic.ReadList(new CreditProgramSearchModel @@ -255,6 +259,8 @@ namespace BankOperatorApp.Controllers { if (HomeController.BankOperator == null) { + Response.WriteAsync($""); return Redirect("~/Home/Enter"); } return View(_currencyPurchaseLogic.ReadList(new CurrencyPurchaseSearchModel diff --git a/Bank/BankOperatorApp/Views/Home/AddDealsToCreditProgram.cshtml b/Bank/BankOperatorApp/Views/Home/AddDealsToCreditProgram.cshtml index e2d6f8e..80d125c 100644 --- a/Bank/BankOperatorApp/Views/Home/AddDealsToCreditProgram.cshtml +++ b/Bank/BankOperatorApp/Views/Home/AddDealsToCreditProgram.cshtml @@ -8,13 +8,13 @@