public static int Add(ArticleInfo entity) { entity.Id = dal.Add(entity); UploadBLL.UpdateUpload(TableID, 0, entity.Id, Cookies.Admin.GetRandomNumber(false)); CacheHelper.Remove(cacheKey); return(entity.Id); }
public static int Add(ProductInfo entity) { entity.Id = dal.Add(entity); UploadBLL.UpdateUpload(TableID, 0, entity.Id, Cookies.Admin.GetRandomNumber(false)); int[] classIds = Array.ConvertAll <string, int>(entity.ClassId.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries), k => Convert.ToInt32(k)); ProductClassBLL.ChangeProductCount(classIds, ChangeAction.Plus); CacheHelper.Remove("ProductClass"); return(entity.Id); }
/// <summary> /// 更新一条链接数据 /// </summary> /// <param name="link">链接模型变量</param> public static void UpdateLink(LinkInfo link) { dal.UpdateLink(link); UploadBLL.UpdateUpload(TableID, 0, link.ID, Cookies.Admin.GetRandomNumber(false)); CacheHelper.Remove(cacheKey); }
public static void Update(ProductInfo entity) { dal.Update(entity); UploadBLL.UpdateUpload(TableID, 0, entity.Id, Cookies.Admin.GetRandomNumber(false)); }
public static void Update(LotteryActivityInfo entity) { dal.Update(entity); CacheHelper.Remove(cacheKey); UploadBLL.UpdateUpload(TableID, 0, entity.Id, Cookies.Admin.GetRandomNumber(false)); }