Example #1
0
        private static SpecialTopicInfoResponse SpecialTopicInfoResponseMapping(SpecialTopicEntity source, List<ResourceInfoResponse> resourceInfoResponses)
        {
            if (source == null)
            {
                return null;
            }

            var target = Mapper.Map<SpecialTopicEntity, SpecialTopicInfoResponse>(source);
            target.ResourceInfoResponses = resourceInfoResponses;

            return target;
        }
Example #2
0
        public SpecialTopicInfoResponse SpecialTopicInfoResponseMapping(SpecialTopicEntity source)
        {
            if (source == null)
            {
                return null;
            }

            var entitys = base.GetListResourceEntities(SourceType.SpecialTopic, source.Id);
            var res = ResourceInfoResponsesMapping(entitys).ToList();

            return SpecialTopicInfoResponseMapping(source, res);
        }