Ejemplo n.º 1
0
        public bool ChangeUserState(UserIdentifier userIdentifier, string newState)
        {
            VerifySystemIsInitialized();
            _verifier.VerifyMe(MethodBase.GetCurrentMethod(), userIdentifier, newState);
            bool res = _userDomain.ChangeUserState(userIdentifier.Guid, newState);

            if (res)
            {
                _logger.LogInformation($"{GetUserName(userIdentifier.Guid)} changed to {newState}.");
            }
            else
            {
                _logger.LogInformation($"{GetUserName(userIdentifier.Guid)} faield to change to {newState}.");
            }
            return(res);
        }