public void Consume(RiskLevelUpdated message) { using (var scope = CustomTransactionScope.GetTransactionScope()) { var riskLevel = _brandRepository.RiskLevels.Single(x => x.Id == message.Id); riskLevel.BrandId = message.BrandId; riskLevel.Name = message.Name; riskLevel.Level = message.Level; riskLevel.Description = message.Description; riskLevel.Status = (Status)message.Status; _brandRepository.SaveChanges(); scope.Complete(); } }
public void Consume(RiskLevelUpdated message) { _eventHandlers.Handle(message); }
public void Handle(RiskLevelUpdated @event) { AddActivityLog(AdminActivityLogCategory.FraudRiskLevel, @event); }