public IHttpActionResult GetAll() { try { List <Nota> items = NoteDAO.GetAll(); return(Ok(items)); } catch (Exception ex) { string messaggio = $"Errore durante la GetAll in NotesController --- {ex}"; log.Error(messaggio); return(BadRequest(messaggio)); } }
public List <Note> GetAllNotes() { NoteDAO dao = new NoteDAO(m_DB); return(dao.GetAll()); }