public static void SwapCategorySequence(int categoryId, CategoryZIndex zIndex) { if (categoryId > 0) { ProductProvider.Instance().SwapCategorySequence(categoryId, zIndex); HiCache.Remove("DataCache-Categories"); } }
public static void SwapCategorySequence(int categoryId, CategoryZIndex zIndex) { if (categoryId > 0) { SubsiteProductProvider.Instance().SwapCategorySequence(categoryId, zIndex); HiCache.Remove(string.Format("DataCache-SubsiteCategories{0}", HiContext.Current.User.UserId)); } }
public override void SwapCategorySequence(int categoryId, CategoryZIndex zIndex) { DbCommand storedProcCommand = this.database.GetStoredProcCommand("cp_Category_SwapDisplaySequence"); this.database.AddInParameter(storedProcCommand, "CategoryId", DbType.Int32, categoryId); this.database.AddInParameter(storedProcCommand, "ZIndex", DbType.Int32, (int)zIndex); this.database.ExecuteNonQuery(storedProcCommand); }
public abstract void SwapCategorySequence(int categoryId, CategoryZIndex zIndex);
public override void SwapCategorySequence(int categoryId, CategoryZIndex zIndex) { DbCommand storedProcCommand = database.GetStoredProcCommand("cp_Category_SwapDisplaySequence"); database.AddInParameter(storedProcCommand, "CategoryId", DbType.Int32, categoryId); database.AddInParameter(storedProcCommand, "ZIndex", DbType.Int32, (int)zIndex); database.ExecuteNonQuery(storedProcCommand); }