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); }
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; } }