Example #1
0
        public string Resolve(OrderItem source, OrderItemDto destination, string destMember, ResolutionContext context)
        {
            if (string.IsNullOrEmpty(source.ItemOrdered.PictureUrl))
            {
                return(null);
            }

            return(_urlResolver.GetAbsolutePath(source.ItemOrdered.PictureUrl));
        }
Example #2
0
        public string Resolve(Product source, ProductToReturnDto destination, string destMember,
                              ResolutionContext context)
        {
            if (string.IsNullOrEmpty(source.PictureUrl))
            {
                return(null);
            }

            return(_urlResolver.GetAbsolutePath(source.PictureUrl));
        }