public void DeleteIco(int CategoryId) { BLL.Tao.Categories CateBll = new BLL.Tao.Categories(); Model.Tao.Categories Val = CateBll.GetModel(CategoryId); if (Val.IconUrl != null) { HiUploader.DeleteImage(Val.IconUrl); CateBll.UpdateImgURL(CategoryId.ToString()); } }
private void InitDate(int cateId) { BLL.Tao.Categories cateBll = new BLL.Tao.Categories(); Model.Tao.Categories model = cateBll.GetModel(cateId); if (model != null) { string[] cateArr = model.Path.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries); switch (cateArr.Length) { case 3: InitFullCateInfo(cateId, cateArr, 3); break; case 2: InitFullCateInfo(cateId, cateArr, 0); break; default: break; } } }