public void Handle(PromotionDeactivated @event) { using (var context = _contextFactory.Invoke()) { var promotionDetail = context.Find <PromotionDetail>(@event.SourceId); promotionDetail.Active = false; context.Save(promotionDetail); } }
private void OnPromotionDeactivated(PromotionDeactivated @event) { _active = false; }