Example #1
0
        public void UpdatePointTotal(User user)
        {
            var total = _pointLedgerRepository.GetPointTotal(user.UserID);

            _profileRepository.UpdatePoints(user.UserID, total);
        }
        public async Task UpdatePointTotal(User user)
        {
            var total = await _pointLedgerRepository.GetPointTotal(user.UserID);

            await _profileRepository.UpdatePoints(user.UserID, total);
        }