public ActionResult CambiarContraReci() { if (Request.Cookies["Sesion"] == null) { return RedirectToAction("Index", "Home"); } else { HttpCookie aCookie = Request.Cookies["Sesion"]; if (!aCookie["Tipo"].Equals("Tutor")) return RedirectToAction("Index", "Home"); else { ViewBag.Texto = Server.HtmlEncode(aCookie.Values["Usuario"]); user = int.Parse(Server.HtmlEncode(aCookie.Values["ID"])); } } Asistentes_TutoresEntities Datos = new Asistentes_TutoresEntities(); String contr = Request["contra2"]; Datos.SP_CambContra(user, Encriptar(contr)); return RedirectToAction("IndexTutores"); }