private Cinnost Modify(EventCinnostUpdated evt, Cinnost item) { item.EventGuid = evt.EventId; item.Value1 = evt.CinnostValue1; item.Value2 = evt.CinnostValue2; return(item); }
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); }