public IDomainEvent TransformEvent(EventStoreDao eventSelected) { var o = JsonConvert.DeserializeObject(eventSelected.Data, _jsonSerializerSettings); var evt = (IDomainEvent)o; return(evt); }
private IDomainEvent <TId> TransformEvent(EventStoreDao eventSelected) { var o = JsonConvert.DeserializeObject(eventSelected.Data, _jsonSerializerSettings); var evt = o as IDomainEvent <TId>; return(evt); }