Exemple #1
0
        public async Task <IEnumerable <string> > SetPrepayBadges(string username)
        {
            var applicationUser = await _databaseRepository.GetApplicationUser(username);

            var userAudit = await _databaseRepository.GetLastUserBalanceAudit(applicationUser.UserId);

            var prepayBadges = _badgeService.ExtractPrepayBadges(applicationUser, userAudit.Amount);

            _databaseRepository.SaveApplicationUser(applicationUser);
            return(prepayBadges);
        }