public IActionResult AdminLogin(LoginRequest loginRequest) { BaseResponse baseResponse = _kullaniciRepository.Login(loginRequest); if (baseResponse.isOkey == true) { //HttpContext.Session.SetString("deneme", "Fatih Deneme"); //TempData["kAdi"] = baseResponse.message; string page; if (loginRequest.page == null) { page = "Kullanicilar"; } else { page = loginRequest.page; } return(RedirectToAction(page, "Yonetim", new { userName = "******", password = "******" })); } return(View()); }