public static void Delete(int id) { dal.Delete(id); ProductTypeAttributeBLL.DeleteList(id); ProductTypeStandardBLL.DeleteList(id); CacheHelper.Remove(cacheKey); }
public static void DeleteList(string ids) { string[] idArr = ids.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (string id in idArr) { dal.Delete(Convert.ToInt32(id)); ProductTypeAttributeBLL.DeleteList(Convert.ToInt32(id)); ProductTypeStandardBLL.DeleteList(Convert.ToInt32(id)); } CacheHelper.Remove(cacheKey); }