private void LevelUpUsers(List <User> users) { var mysteryBox = _itemRepository.GetItem(MysteryBoxId); _statsRepository.LevelUpUsers(users.Select(user => user.Id).ToList()); _inventoryRepository.AddItemToUsers(users, mysteryBox); }
public void EndCoffee(string channelId) { var participants = _coffeeRepository.GetReadyParticipants().ToList(); var participantsId = participants.Select(user => user.Id).ToList(); _creditsRepository.AddCreditsToUsers(participantsId, CoffeeBreakAward); _inventoryRepository.AddItemToUsers(participants, new CoffeeCup(_statsRepository, _inventoryRepository)); _userService.AddBulkExperience(participants, CoffeeExperienceAward, channelId).Wait(); _coffeeRepository.ResetRoster(); _coffeeRepository.EndCoffeeBreak(); _slack.BroadcastMessage(DougMessages.BackToWork, channelId); }
private void LevelUpUsers(List <User> users) { _statsRepository.LevelUpUsers(users.Select(user => user.Id).ToList()); _inventoryRepository.AddItemToUsers(users, new MysteryBox(null, null, null, null, null)); //rip }