private Task <string> CreateNoteAsync(ContactNote note, bool populate, CancellationToken cancellationToken = default) { Preconditions.NotNull(note, nameof(note)); Preconditions.NullOrEmpty(note.NoteId, $"{nameof(note)}.{nameof(note.NoteId)}"); return(PostPopulateDirtyAsync(null, nameof(CreateNoteAsync), note, populate, cancellationToken)); }
private Task UpdateNoteAsync(ContactNote note, bool populate, CancellationToken cancellationToken = default) { Preconditions.NotNull(note, nameof(note)); Preconditions.NotNullOrEmpty(note.NoteId, $"{nameof(note)}.{nameof(note.NoteId)}"); note.Dirty = true; // To be removed if Ellie Mae updates API to only update provided properties. return(PatchPopulateDirtyAsync(note.NoteId, JsonStreamContent.Create(note), nameof(UpdateNoteAsync), note.NoteId, note, populate, cancellationToken)); }
/// <inheritdoc/> public Task UpdateNoteAsync(ContactNote note, CancellationToken cancellationToken = default) => UpdateNoteAsync(note, false, cancellationToken);
/// <inheritdoc/> public Task <string> CreateNoteAsync(ContactNote note, CancellationToken cancellationToken = default) => CreateNoteAsync(note, false, cancellationToken);