Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public void Update(Page page)
 {
     _urlSlugService.Update(page.SeoTitle, page.Id, PageEntityTypeId);
     _pageRepository.SaveChange();
 }
Exemplo n.º 3
0
 public void Update(Brand brand)
 {
     _urlSlugService.Update(brand.SeoTitle, brand.Id, BrandEntityTypeId);
     _brandRepository.SaveChange();
 }
Exemplo n.º 4
0
 public void Update(Category category)
 {
     urlSlugService.Update(category.SeoTitle, category.Id, CategoryEntityName);
     categoryRepository.SaveChange();
 }
Exemplo n.º 5
0
 public void Update(Category category)
 {
     _urlSlugService.Update(category.SeoTitle, category.Id, CategoryEntityTypeId);
     _categoryRepository.SaveChange();
 }
Exemplo n.º 6
0
 public void Update(Product product)
 {
     urlSlugService.Update(product.SeoTitle, product.Id, ProductEntityName);
     productRepository.SaveChange();
 }
Exemplo n.º 7
0
 public void Update(Brand brand)
 {
     urlSlugService.Update(brand.SeoTitle, brand.Id, BrandEntityName);
     brandRepository.SaveChange();
 }
Exemplo n.º 8
0
 public void Update(Page page)
 {
     urlSlugService.Update(page.SeoTitle, page.Id, PageEntityName);
     pageRepository.SaveChange();
 }