Ejemplo n.º 1
0
        public void Handle(DinnerEventDateChangedEvent domainEvent)
        {
            var dinnerReadModel = GetDinnerReadModel(domainEvent);

            if (dinnerReadModel == null)
            {
                return;
            }
            dinnerReadModel.EventDate = domainEvent.NewEventDate;

            db.SaveChanges();
        }
Ejemplo n.º 2
0
 protected void OnDinnerEventDateChanged(DinnerEventDateChangedEvent domainEvent)
 {
     eventDate = domainEvent.NewEventDate;
 }