public void Consume(PlayerPaymentLevelChanged @event) { var paymentRepository = _container.Resolve <IPaymentRepository>(); var playerPaymentLevel = paymentRepository.PlayerPaymentLevels.FirstOrDefault(x => x.PlayerId == @event.PlayerId); if (playerPaymentLevel == null) { return; } var paymentLevel = paymentRepository.PaymentLevels.FirstOrDefault(x => x.Id == @event.NewPaymentLevelId); if (paymentLevel == null) { return; } playerPaymentLevel.PaymentLevel = paymentLevel; paymentRepository.SaveChanges(); }
public void Handle(PlayerPaymentLevelChanged @event) { AddActivityLog(AdminActivityLogCategory.Player, @event); }
public void Consume(PlayerPaymentLevelChanged message) { _playerHandlers.Handle(message); }
public void Handle(PlayerPaymentLevelChanged @event) { AddActivityLog("Payment Level changed", @event, @event.PlayerId, @event.Remarks); }