Exemple #1
0
        public async Task SaveLastUpdateDateAsync(TermsType termsType, DateTime updateDate)
        {
            loggerService.StartMethod();

            var key = termsType == TermsType.TermsOfService ? TermsOfServiceLastUpdateDateKey : PrivacyPolicyLastUpdateDateKey;
            await applicationPropertyService.SavePropertiesAsync(key, updateDate);

            loggerService.EndMethod();
        }
Exemple #2
0
        public async Task ExecuteAsync()
        {
            _loggerService.StartMethod();

            var existsUserData = _applicationPropertyService.ContainsKey(APPLICATION_PROPERTY_USER_DATA_KEY);

            if (existsUserData)
            {
                _loggerService.EndMethod();
                return;
            }

            var userData = new UserDataModel();
            await _applicationPropertyService.SavePropertiesAsync(APPLICATION_PROPERTY_USER_DATA_KEY, JsonConvert.SerializeObject(userData));

            _loggerService.EndMethod();
        }