示例#1
0
 public static void UpdateNumberViews(int objID)
 {
     if (objID <= 0)
         return;
     ForumDataMapper objCaller = new ForumDataMapper();
     objCaller.UpdateNumberViews(objID);
 }
示例#2
0
        public static List<Forum> GetByGroupID(int GroupID)
        {
            if (GroupID <= 0)
                return new List<Forum>();

            ForumDataMapper objCaller = new ForumDataMapper();

            return objCaller.GetByGroupID(GroupID);
        }
示例#3
0
        public static Forum GetPublishedByID(int ID)
        {
            if (ID <= 0)
                return null;

            ForumDataMapper objCaller = new ForumDataMapper();

            return objCaller.GetPublishedByID(ID, true);
        }
示例#4
0
        public static void UpdateActive(int objID, bool IsActive)
        {
            if (objID <= 0)
                return;

            ForumDataMapper objCaller = new ForumDataMapper();

            objCaller.UpdateActive(objID, IsActive);
        }
示例#5
0
        public static void Update(Forum obj)
        {
            if (obj == null)
                throw new Exception("Object is null");

            ForumDataMapper objCaller = new ForumDataMapper();

            objCaller.Update(obj);
        }
示例#6
0
        public static int Add(Forum obj)
        {
            if (obj == null)
                throw new Exception("Object is null");

            ForumDataMapper objCaller = new ForumDataMapper();

            return objCaller.Add(obj);
        }
示例#7
0
 public static void DeletePhysical(int ID)
 {
     if (ID <= 0)
         return;
     ForumDataMapper objCaller = new ForumDataMapper();
     objCaller.DeletePhysical(ID);
 }
示例#8
0
        public static List<Forum> GetBySearch(string Keyword, int GroupID)
        {
            ForumDataMapper objCaller = new ForumDataMapper();

            return objCaller.GetBySearch(Keyword, GroupID);
        }
示例#9
0
        public static List<Forum> GetAll()
        {
            ForumDataMapper objCaller = new ForumDataMapper();

            return objCaller.GetAll();
        }