public ActionResult AddAlumno(AlumnoModel al) { try { AlumnoRepository ar = new AlumnoRepository(); if (ar.AddAlumno(al)) { ViewBag.message = "Almacenado correctamente"; } return(RedirectToAction("Index")); } catch (Exception) { return(View()); } }