public static IEnumerable <string> OtherImagesUrl(this IBlockDataHasImages hasImagesBlock) { if (hasImagesBlock.OtherImages == null || hasImagesBlock.OtherImages.Count() < 1) { return(Enumerable.Empty <string>()); } var result = new List <string>(); foreach (var cref in hasImagesBlock.OtherImages) { result.Add(GetPublicUrl(cref)); } return(result); }
public static string ImageUrl(this IBlockDataHasImages hasImageBlock) { return(GetPublicUrl(hasImageBlock.Image)); }