Esempio n. 1
0
        public void CreateNotebook()
        {
            Notebook newNotebook = new Notebook()
            {
                Name = "New Notebook"
            };

            DatabaseRepo.Insert(newNotebook);

            ReadNotebooks();
        }
Esempio n. 2
0
        public void CreateNote(int notebookId)
        {
            Note newNote = new Note()
            {
                NotebookId  = notebookId,
                CreatedTime = DateTime.Now,
                UpdatedTime = DateTime.Now,
                Title       = "New Note"
            };

            DatabaseRepo.Insert(newNote);

            ReadNotes();
        }