protected override void InternalValidate() { GlsDirectorySession glsDirectorySession = new GlsDirectorySession(); string text = this.MsaUserNetId.ToString(); if (!glsDirectorySession.MSAUserExists(text)) { base.WriteGlsMsaUserNotFoundError(text); } base.InternalValidate(); }
protected override void InternalValidate() { GlsDirectorySession glsDirectorySession = new GlsDirectorySession(); string text = this.MsaUserNetId.ToString(); if (glsDirectorySession.MSAUserExists(text)) { base.WriteGlsMsaUserAlreadyExistsError(text); } Guid externalDirectoryOrganizationId = this.ExternalDirectoryOrganizationId; GlobalLocatorServiceTenant globalLocatorServiceTenant; if (!glsDirectorySession.TryGetTenantInfoByOrgGuid(externalDirectoryOrganizationId, out globalLocatorServiceTenant)) { base.WriteGlsTenantNotFoundError(externalDirectoryOrganizationId); } base.InternalValidate(); }