Esempio n. 1
0
        public async Task SaveUserAsync(User user)
        {
            if (user.Id == default(Guid))
            {
                throw new ApplicationException("Use register method to create a new user.");
            }

            user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
            await _userRepository.ReplaceAsync(user);

            // push
            await _pushService.PushSyncSettingsAsync(user.Id);
        }