public void UpdateProduct(Product product) { var prodrepo = new ProductRepository(); var imgrepo = new ImageRepository(); var featrepo = new FeatureRepository(); var features = featrepo.GetByProductId(product.Id); imgrepo.AddRange(product.Image); MergeList(product.Feature, features, featrepo); prodrepo.Update(product); }
public void AddImageRange(List <Image> image) { var repo = new ImageRepository(); repo.AddRange(image); }