示例#1
0
        public static Note CreateNote(Repository repository, NoteData noteData)
        {
            Verify.Argument.IsNotNull(repository, "repository");
            Verify.Argument.IsNotNull(noteData, "noteData");

            return new Note(repository, noteData.Name, noteData.ObjectName, noteData.Message);
        }
示例#2
0
        public static void UpdateNode(Note note, NoteData noteData)
        {
            Verify.Argument.IsNotNull(note, "note");
            Verify.Argument.IsNotNull(noteData, "noteData");

            note.Object = noteData.ObjectName;
            if(noteData.Message != null)
            {
                note.Message = noteData.Message;
            }
        }