public IActionResult UserPanel(AuthModel authModel) { string userData = authModel.GetHashCode().ToString(); if (authModel.Login == "Admin" && authModel.Password == "Admin") { return(View(authModel)); } else if (authModel.Login == "User1" && authModel.Password == "User1") { return(View(authModel)); } else if (authModel.Login == "User2" && authModel.Password == "User2") { return(View(authModel)); } else { return(RedirectToAction(nameof(HomeController.Login), "Home")); } }