示例#1
0
        public override bool Remove(Guid id)
        {
            var dbItem = Get(id);

            db.RemoveFile(dbItem.Icon);
            return(base.Remove(id));
        }
        public override bool Remove(Guid id)
        {
            var item   = Get(id);
            var result = base.Remove(id);

            db.RemoveFile(item.Icon);
            db.RemoveFile(item.Cover);
            return(result);
        }
示例#3
0
        public override bool Remove(Guid id)
        {
            var item   = Get(id);
            var result = base.Remove(id);

            db.RemoveFile(item.Icon);
            db.RemoveFile(item.CoverImage);

            if (item.BackgroundImage.IsHttpUrl())
            {
                HttpFileCache.ClearCache(item.BackgroundImage);
            }
            else
            {
                db.RemoveFile(item.BackgroundImage);
            }

            return(result);
        }
示例#4
0
        public override bool Remove(Guid id)
        {
            RemoveUsage(id);
            var dbItem = Get(id);

            db.RemoveFile(dbItem.Icon);
            db.RemoveFile(dbItem.Cover);
            db.RemoveFile(dbItem.Background);
            return(base.Remove(id));
        }