예제 #1
0
        public static HistoryEventDto FromDomain(ParsedHistoryEvent historyEvent)
        {
            var result = SimpleMapper.Map(historyEvent, new HistoryEventDto {
                EventId = historyEvent.Id
            });

            return(result);
        }
예제 #2
0
 public static HistoryEventDto FromHistoryEvent(ParsedHistoryEvent historyEvent)
 {
     return(SimpleMapper.Map(historyEvent, new HistoryEventDto {
         EventId = historyEvent.Id
     }));
 }