예제 #1
0
        public static Entities.Dto.Bundle Map(Bundle bundle)
        {
            var products = bundle.Products.Select(p => Mapper.Map(p)).ToList();

            var bundleDto = new Entities.Dto.Bundle()
            {
                Description = bundle.Description,
                Name        = bundle.Name,
                Id          = bundle.Id,
                Products    = products
            };

            return(bundleDto);
        }
예제 #2
0
        public static Entities.Dto.Bundle Map(Bundle bundle)
        {
            var products = bundle.Products.Select(p => Mapper.Map(p)).ToList();

            var bundleDto = new Entities.Dto.Bundle()
            {
                Description = bundle.Description,
                Name = bundle.Name,
                Id = bundle.Id,
                Products = products
            };

            return bundleDto;
        }