public void CreateNotebook() { Notebook newNotebook = new Notebook() { Name = "New Notebook" }; DatabaseRepo.Insert(newNotebook); ReadNotebooks(); }
public void CreateNote(int notebookId) { Note newNote = new Note() { NotebookId = notebookId, CreatedTime = DateTime.Now, UpdatedTime = DateTime.Now, Title = "New Note" }; DatabaseRepo.Insert(newNote); ReadNotes(); }