public NotebookViewModel GetAllNotebooks() { var notebookDb = new NotebookDb(); var noteDb = new NoteDb(); var vm = new NotebookViewModel {Notebooks = notebookDb.GetAll(), Notes = noteDb.GetAll()}; return vm; }
public Notebook SaveNotebook(Notebook notebook) { var notebookDb = new NotebookDb(); return notebookDb.Save(notebook); }
public void DeleteNotebook(Notebook noteBook) { var notebookDb = new NotebookDb(); notebookDb.Delete(noteBook); }