public void Consume(PaymentLevelAdded message) { _repository.PaymentLevels.Add(new PaymentLevel { Id = message.Id, Name = message.Name }); _repository.SaveChanges(); }
public void Consume(PaymentLevelAdded message) { _eventHandlers.Handle(message); }
public void Handle(PaymentLevelAdded @event) { AddActivityLog(AdminActivityLogCategory.PaymentLevel, @event); }