public async Task <int> UpdateAsync(Image image, CancellationTokenSource token)
        {
            B2CImage updateImage = image.AdapterImage();

            var result = await Repository.Update2Async(updateImage, token);

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

            newImages.IdProduct = idProduct;
            newImages.IdOffer   = idOffer;

            var result = await Repository.CreateAsync(new List <B2CImage>() { newImages }, token);

            return(result);
        }