Пример #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();
        }