public NotebookViewModel GetAllNotebooks() { var notebookDb = new NotebookDb(); var noteDb = new NoteDb(); var vm = new NotebookViewModel {Notebooks = notebookDb.GetAll(), Notes = noteDb.GetAll()}; return vm; }
public Note SaveNote(Note note) { var noteDb = new NoteDb(); return noteDb.Save(note); }
public void DeleteNote(Note note) { var noteDb = new NoteDb(); noteDb.DeleteNote(note); }