private void SynchUser(int originalId)
{
if (_syncObject)
{
var ADProvider = DirectoryProvider.Current;
if (ADProvider != null)
{
if (originalId == 0)
ADProvider.CreateNewADUser(this, _password);
else
ADProvider.UpdateADUser(this, this.Path, _password);
}
}
// default: object should be synced. if it was not synced now (sync properties updated only) next time it should be.
_syncObject = true;
}