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)); }
public string Resolve(Product source, ProductToReturnDto destination, string destMember, ResolutionContext context) { if (string.IsNullOrEmpty(source.PictureUrl)) { return(null); } return(_urlResolver.GetAbsolutePath(source.PictureUrl)); }