Beispiel #1
0
 public async Task AddImageToProduct(int productId, int imageId)
 {
     var productImage = new ProductImage {
         ProductId = productId, ImageId = imageId
     };
     await _productImageRepository.Create(productImage);
 }
Beispiel #2
0
 public async Task AddImageToProduct(int productId, int imageId)
 {
     var model = new ProductImage {
         ProductId = productId, ImageId = imageId
     };
     var entity = _mapper.Map <Entity.ProductImage>(model);
     await _productImageRepository.Create(entity);
 }
Beispiel #3
0
 public ProductImage Create(ProductImage ProductImage)
 {
     return(ProductImageRepo.Create(ProductImage));
 }
 public void Create(ProductImage ProductImage)
 {
     ProductImageRepository.Create(ProductImage);
 }