예제 #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;
        }
예제 #2
0
 public Note SaveNote(Note note)
 {
     var noteDb = new NoteDb();
     return noteDb.Save(note);
 }
예제 #3
0
 public void DeleteNote(Note note)
 {
     var noteDb = new NoteDb();
     noteDb.DeleteNote(note);
 }