Exemple #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;
        }
Exemple #2
0
 public Notebook SaveNotebook(Notebook notebook)
 {
     var notebookDb = new NotebookDb();
     return notebookDb.Save(notebook);
 }
Exemple #3
0
 public void DeleteNotebook(Notebook noteBook)
 {
     var notebookDb = new NotebookDb();
     notebookDb.Delete(noteBook);
 }