Exemple #1
0
 private Cinnost Modify(EventCinnostUpdated evt, Cinnost item)
 {
     item.EventGuid = evt.EventId;
     item.Value1    = evt.CinnostValue1;
     item.Value2    = evt.CinnostValue2;
     return(item);
 }
Exemple #2
0
        private Cinnost Create(EventCinnostCreated evt)
        {
            var model = new Cinnost()
            {
                Generation = evt.Generation,
                EventGuid  = evt.EventId,
                CinnostId  = evt.CinnostId,
                Value1     = evt.CinnostValue1,
                Value2     = evt.CinnostValue2
            };

            return(model);
        }