public async Task AddImageToProduct(int productId, int imageId) { var productImage = new ProductImage { ProductId = productId, ImageId = imageId }; await _productImageRepository.Create(productImage); }
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); }
public ProductImage Create(ProductImage ProductImage) { return(ProductImageRepo.Create(ProductImage)); }
public void Create(ProductImage ProductImage) { ProductImageRepository.Create(ProductImage); }