コード例 #1
0
 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());
     }
 }