private ConfigurationModel GetModel()
        {
            var model = new ConfigurationModel();
            var authenticationInfo = _authenticationProvider.GetAuthenticationInfo();

            if (authenticationInfo.IsAuthenticated)
            {
                model.IsAuthenticated = true;
                model.UserName        = authenticationInfo.UserName;
                model.UserId          = authenticationInfo.UserId;
                var optedOutUserIds = _optoutUserService.GetOptedOutUserIds();
                model.IsOptedOut = optedOutUserIds.Contains(authenticationInfo.UserId);
            }
            return(model);
        }