public void Update(Product product) { var slug = _urlSlugService.Get(product.Id, ProductEntityTypeId); if (product.IsVisibleIndividually) { if (slug != null) { _urlSlugService.Update(product.SeoTitle, product.Id, ProductEntityTypeId); } else { _urlSlugService.Add(product.SeoTitle, product.Id, ProductEntityTypeId); } } else { if (slug != null) { _urlSlugService.Remove(product.Id, ProductEntityTypeId); } } _productRepository.SaveChange(); }
public void Update(Page page) { _urlSlugService.Update(page.SeoTitle, page.Id, PageEntityTypeId); _pageRepository.SaveChange(); }
public void Update(Brand brand) { _urlSlugService.Update(brand.SeoTitle, brand.Id, BrandEntityTypeId); _brandRepository.SaveChange(); }
public void Update(Category category) { urlSlugService.Update(category.SeoTitle, category.Id, CategoryEntityName); categoryRepository.SaveChange(); }
public void Update(Category category) { _urlSlugService.Update(category.SeoTitle, category.Id, CategoryEntityTypeId); _categoryRepository.SaveChange(); }
public void Update(Product product) { urlSlugService.Update(product.SeoTitle, product.Id, ProductEntityName); productRepository.SaveChange(); }
public void Update(Brand brand) { urlSlugService.Update(brand.SeoTitle, brand.Id, BrandEntityName); brandRepository.SaveChange(); }
public void Update(Page page) { urlSlugService.Update(page.SeoTitle, page.Id, PageEntityName); pageRepository.SaveChange(); }