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