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