public static NotebookDto ReadNotebook() { return(CreatableFactory.NowWith <NotebookDto>(notebook => { notebook.Name = ReadLineWithMessage("Enter a name for the notebook"); })); }
public static NoteDto ReadNote() { return(CreatableFactory.NowWith <NoteDto>(note => { note.Name = ReadLineWithMessage("Enter a name for the note"); note.Text = ReadLineWithMessage("Enter your note text"); })); }