// GET: Login public ActionResult Index() { #if DEBUG LoginData.CreateCookie("VP"); #endif var user = LoginData.GetUser(); if (string.IsNullOrEmpty(user.Login)) { return(RedirectToAction("Logar", "Login")); } AutoLogin(user); //return RedirectToAction("Index", "Home"); //if (User.Identity.IsAuthenticated) //{ Session["USERMODEL"] = user; return(RedirectToAction("Index", "Home")); //} //return View(new LoginModel()); }