From 8cddd1067cef551be4d74e50b58a8fe09409f541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9?= Date: Mon, 3 Apr 2023 10:45:33 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HardwareShopClientApp/Controllers/HomeController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HardwareShop/HardwareShopClientApp/Controllers/HomeController.cs b/HardwareShop/HardwareShopClientApp/Controllers/HomeController.cs index a563f93..c092058 100644 --- a/HardwareShop/HardwareShopClientApp/Controllers/HomeController.cs +++ b/HardwareShop/HardwareShopClientApp/Controllers/HomeController.cs @@ -61,7 +61,7 @@ namespace HardwareShopClientApp.Controllers } [HttpPost] - public void Enter(string email, string password) + public IActionResult Enter(string email, string password) { if (string.IsNullOrEmpty(email) || string.IsNullOrEmpty(password)) { @@ -74,11 +74,11 @@ namespace HardwareShopClientApp.Controllers } if ((int)APIClient.User.Role == 1) { - RedirectToAction("MainWorker", "Worker"); + return RedirectToAction("MainWorker", "Worker"); } else { - RedirectToAction("Goods", "Storekeeper"); + return RedirectToAction("Goods", "Storekeeper"); } } }