diff --git a/HardwareShop/HardwareShopClientApp/Controllers/HomeController.cs b/HardwareShop/HardwareShopClientApp/Controllers/HomeController.cs index bc76ab8..b89dca1 100644 --- a/HardwareShop/HardwareShopClientApp/Controllers/HomeController.cs +++ b/HardwareShop/HardwareShopClientApp/Controllers/HomeController.cs @@ -55,7 +55,7 @@ namespace HardwareShopStorekeeperApp.Controllers } [HttpPost] - public void Privacy(string login, string email, string password) + public IActionResult Privacy(string login, string email, string password) { if (APIClient.User == null) { @@ -77,7 +77,7 @@ namespace HardwareShopStorekeeperApp.Controllers APIClient.User.Email = email; APIClient.User.Password = password; - RedirectToAction("MainStorekeeper", "Storekeeper"); + return RedirectToAction("MainStorekeeper", "Storekeeper"); } [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] diff --git a/HardwareShop/HardwareShopClientApp/Views/Home/Privacy.cshtml b/HardwareShop/HardwareShopClientApp/Views/Home/Privacy.cshtml index 1984ba8..2659243 100644 --- a/HardwareShop/HardwareShopClientApp/Views/Home/Privacy.cshtml +++ b/HardwareShop/HardwareShopClientApp/Views/Home/Privacy.cshtml @@ -5,7 +5,7 @@ @{ ViewData["Title"] = "Privacy Policy"; - Layout = "~/Views/Shared/_LayoutWorker.cshtml"; + Layout = "~/Views/Shared/_LayoutStorekeeper.cshtml"; }