private Pravidlo Modify(EventNastaveniUpdated evt, Pravidlo item) { item.EventGuid = evt.EventId; item.Value1 = evt.NastaveniValue1; item.Value2 = evt.NastaveniValue2; return(item); }
private Pravidlo Create(EventNastaveniCreated evt) { var model = new Pravidlo() { Generation = evt.Generation, EventGuid = evt.EventId, PravidloId = evt.NastaveniId, Value1 = evt.NastaveniValue1, Value2 = evt.NastaveniValue2 }; return(model); }