Esempio n. 1
0
        public NotebookViewModel GetAllNotebooks()
        {
            var notebookDb = new NotebookDb();
            var noteDb = new NoteDb();
            var vm = new NotebookViewModel {Notebooks = notebookDb.GetAll(), Notes = noteDb.GetAll()};

            return vm;
        }
Esempio n. 2
0
 public Note SaveNote(Note note)
 {
     var noteDb = new NoteDb();
     return noteDb.Save(note);
 }
Esempio n. 3
0
 public void DeleteNote(Note note)
 {
     var noteDb = new NoteDb();
     noteDb.DeleteNote(note);
 }