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