예제 #1
0
 public List <Alumno> GetAll()
 {
     try
     {
         List <Alumno> ListaAlumno = AlumnoData.GetAll();
         return(ListaAlumno);
     }
     catch (NotFoundException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw new CustomException(ex);
     }
 }
예제 #2
0
 public List <Alumno> GetAll()
 {
     try
     {
         return(AlumnoData.GetAll());
     }
     catch (Exception Ex)
     {
         Exception ExcepcionManejada =
             new Exception("Error al recuperar lista de alumnos", Ex);
         throw ExcepcionManejada;
     }
 }