Beispiel #1
0
        private bool UpdateMultiImages(BaseItem item, IReadOnlyList <LocalImageInfo> images, ImageType type)
        {
            var changed = false;

            var newImageFileInfos = images
                                    .Where(i => i.Type == type)
                                    .Select(i => i.FileInfo)
                                    .ToList();

            if (item.AddImages(type, newImageFileInfos))
            {
                changed = true;
            }

            return(changed);
        }