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));
     }
 }
Esempio n. 2
0
        public List <Note> GetAllNotes()
        {
            NoteDAO dao = new NoteDAO(m_DB);

            return(dao.GetAll());
        }