/** * Getting the Notes in the Notebook * * @id : the id of the notebook * * return a list of notes **/ public List <Note> getNotes(String id) { try { List <Note> notes = new List <Note>(); notebookDAO.findNotes(id).ForEach(ID => notes.Add(NoteDAOImplementation.getInsence().findById(ID))); return(notes); } catch (Exception e) { Logging.logInfo(true, e.Message); } return(new List <Note>()); }