private AADUserPresentationObject Redact(AADUserPresentationObject value) { if (value != null) { value.DisplayName = SuppressingPiiData.Redact(value.DisplayName); value.MailNickname = SuppressingPiiData.Redact(value.MailNickname); value.Owners = this.Redact(value.Owners); value.Members = this.Redact(value.Members); } return(value); }
private AADDirectoryObjectPresentationObject Redact(AADDirectoryObjectPresentationObject value) { if (value != null) { AADUserPresentationObject aaduserPresentationObject = value as AADUserPresentationObject; if (aaduserPresentationObject != null) { return(this.Redact(aaduserPresentationObject)); } AADGroupPresentationObject aadgroupPresentationObject = value as AADGroupPresentationObject; if (aadgroupPresentationObject != null) { return(this.Redact(aadgroupPresentationObject)); } value.Owners = this.Redact(value.Owners); value.Members = this.Redact(value.Members); } return(value); }