Ejemplo n.º 1
0
 public static bool AddBrandCategory(BrandCategoryInfo brandCategory)
 {
     int brandId = new BrandCategoryDao().AddBrandCategory(brandCategory);
     if (brandId <= 0)
     {
         return false;
     }
     if (brandCategory.ProductTypes.Count > 0)
     {
         new BrandCategoryDao().AddBrandProductTypes(brandId, brandCategory.ProductTypes);
     }
     return true;
 }
Ejemplo n.º 2
0
 public static bool UpdateBrandCategory(BrandCategoryInfo brandCategory)
 {
     bool flag = new BrandCategoryDao().UpdateBrandCategory(brandCategory);
     if (flag && new BrandCategoryDao().DeleteBrandProductTypes(brandCategory.BrandId))
     {
         new BrandCategoryDao().AddBrandProductTypes(brandCategory.BrandId, brandCategory.ProductTypes);
     }
     return flag;
 }
Ejemplo n.º 3
0
 public static bool SetBrandCategoryThemes(int brandid, string themeName)
 {
     bool flag = new BrandCategoryDao().SetBrandCategoryThemes(brandid, themeName);
     if (flag)
     {
         HiCache.Remove("DataCache-Categories");
     }
     return flag;
 }