public async Task <BlobAttachmentV1[]> RemoveAttachmentsAsync(string correlationId, GuideV1 guide) { if (_attachmentsClient == null || guide == null) { return(null); } var ids = this.ExtractAttachmentIds(guide); var reference = new ReferenceV1(guide.Id, "guide"); return(await _attachmentsClient.RemoveAttachmentsAsync(correlationId, reference, ids)); }
public async Task <BlobAttachmentV1[]> UpdateAttachmentsAsync(string correlationId, GuideV1 oldGuide, GuideV1 newGuide) { if (_attachmentsClient == null || oldGuide == null || newGuide == null) { return(null); } var oldIds = ExtractAttachmentIds(oldGuide); var newIds = ExtractAttachmentIds(newGuide); var reference = new ReferenceV1(newGuide.Id, "guide"); return(await _attachmentsClient.UpdateAttachmentsAsync(correlationId, reference, oldIds, newIds)); }