public ActionResult Login(string user, string password) { User currentUser = Repo.ExistsUser(user.ToUpper(), password.ToUpper()); if (currentUser != null) { Session["USER"] = currentUser.Name; } return(RedirectToAction("Index", "Home")); }