public ActionResult Index(string eid = "") { if (eid == "") { } else { StudentRepository _objRepository = new StudentRepository(); DataSet ds = _objRepository.student_login_activation_link(Encrypt_Decrypt.DecryptData(eid, "")); if (ds != null) { } } if (Session["studentid"] != null && Session["IsPasswordChanged"] != null && Session["ischangedpassword"] != null) { if (Session["studentid"].ToString() != "" && Session["IsPasswordChanged"].ToString() == "True" && Session["ischangedpassword"].ToString() == "True") { return(RedirectToAction("Index", "Dashboard", new { Area = "admission" })); } } return(View()); }