コード例 #1
0
        public void Update(Account account)
        {
            var oldUser = GetByLogin(account.Login);

            account.DistinguishedName = oldUser.DistinguishedName;

            var updatingInfo = _updatingInfoBuilderService.BuildUserUpdatingInfo(account, oldUser).ToArray();

            if (!updatingInfo.Any())
            {
                return;
            }

            _activeDirectoryService.Update(account.DistinguishedName, updatingInfo);
            UpdateDistinguishedName(account, oldUser);
        }