public ActionResult Crear(Docente docente) { docente.InstitucionID = Convert.ToInt64(HttpContext.Session["institucion"].ToString()); var mensaje = DocenteRepository.createDocente(docente); if (mensaje == "OK") { ViewBag.mensaje = "La carga se realizó exitosamente."; } else { ViewBag.error = mensaje; } return(View()); }