Exemplo n.º 1
0
        public static AnalyticStatistics FromDtoToObject(AnalyticStatisticsDto source)
        {
            AnalyticStatistics target = new AnalyticStatistics();

            foreach (AnalyticStatisticsItemDto item in source.Items)
            {
                target.Items.Add(AnalyticStatisticsItemAssembler.FromDtoToDomainObject(item));
            }
            return(target);
        }
Exemplo n.º 2
0
        public static AnalyticStatisticsDto FromObjectToDto(AnalyticStatistics source)
        {
            AnalyticStatisticsDto target = new AnalyticStatisticsDto();

            foreach (AnalyticStatisticsItem item in source.Items)
            {
                target.Items.Add(AnalyticStatisticsItemAssembler.FromDomainObjectToDto(item));
            }
            return(target);
        }