public virtual void SetGloablStickyUndo(int appId, String ids)
        {
            ForumApp app = db.findById <ForumApp>(appId);

            if (app == null)
            {
                return;
            }

            String            condition      = "Id in (" + ids + ")";
            List <ForumTopic> newStickTopics = db.find <ForumTopic>(condition).list();

            app.StickyTopic = StickyTopic.SubtractData(app.StickyTopic, newStickTopics);
            db.update(app);
        }
Exemple #2
0
        public virtual void MakeGloablStickyUndo(AdminValue av)
        {
            av.ActionId = ForumLogAction.GlobalUnSticky;

            ForumApp app = db.findById <ForumApp>(av.AppId);

            if (app == null)
            {
                return;
            }

            List <ForumTopic> newStickTopics = db.find <ForumTopic>(av.Condition).list();

            app.StickyTopic = StickyTopic.SubtractData(app.StickyTopic, newStickTopics);
            db.update(app);

            makeLog(av);
        }