public ActionResult Editar(Docente docente) { docente.InstitucionID = Convert.ToInt64(HttpContext.Session["institucion"].ToString()); var mensaje = DocenteRepository.updateDocente(docente); if (mensaje == "OK") { ViewBag.mensaje = "La carga se editó exitosamente."; } else { ViewBag.error = mensaje; } return(RedirectToAction("Index")); }