public async Task <int> UpdateAsync(IList <Image> images, CancellationTokenSource token)
        {
            IList <B2CImage> newImages = images.AdapterImage().ToList();


            var result = await Repository.UpdateAsync(newImages.ToList(), token);

            return(result);
        }
        public async Task <int> CreateAsync(IList <Image> registers, int idProduct, CancellationTokenSource token)
        {
            IList <B2CImage> newImages = registers.AdapterImage().ToList();

            foreach (var item in newImages)
            {
                item.IdProduct = idProduct;
            }

            var result = await Repository.CreateAsync(newImages.ToList(), token);

            return(result);
        }