예제 #1
0
        public static ForumThread GetByPublishedID(int ID)
        {
            if (ID <= 0)
                return null;

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();
            return objCaller.GetByPublishedID(ID, Enums.RootEnums.ForumThreadStatus.Active);
        }
예제 #2
0
        public static ForumThread GetByIDWithIsDelete(int ID)
        {
            if (ID <= 0)
                return null;

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();
            return objCaller.GetByID(ID, -1);
        }
예제 #3
0
        public static List<ForumThread> GetByPublishedForumID(int ForumID, int PageNumber, int PageSize, ref int ResultCount)
        {
            if (ForumID <= 0)
                return new List<ForumThread>();

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();

            return objCaller.GetByPublishedForumIDWithPaging(ForumID, Enums.RootEnums.ForumThreadStatus.Active, PageNumber, PageSize, ref ResultCount);
        }
예제 #4
0
        public static List<ForumThread> GetByPublishedForumID(int ForumID)
        {
            if (ForumID <= 0)
                return new List<ForumThread>();

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();

            return objCaller.GetByPublishedForumID(ForumID, Enums.RootEnums.ForumThreadStatus.Active);
        }
예제 #5
0
        public static List<ForumThread> GetByForumID(int ForumID)
        {
            if (ForumID <= 0)
                return new List<ForumThread>();

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();

            return objCaller.GetByForumID(ForumID);
        }
예제 #6
0
        public static void Update(ForumThread obj)
        {
            if (obj == null)
                throw new Exception("Object is null");

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();

            objCaller.Update(obj);
        }
예제 #7
0
        public static int Add(ForumThread obj)
        {
            if (obj == null)
                throw new Exception("Object is null");

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();

            return objCaller.Add(obj);
        }
예제 #8
0
        public static void UpdateStatus(int ID, Enums.RootEnums.ForumThreadStatus ForumThreadStatus)
        {
            if (ID <= 0)
                return;

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();
            objCaller.UpdateStatus(ID, ForumThreadStatus);
        }
예제 #9
0
        public static List<ForumThread> GetBySearch(string keyword, int ForumID, Enums.RootEnums.ForumThreadStatus ForumThreadStatus)
        {
            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();

            return objCaller.GetBySearch(keyword, ForumID, ForumThreadStatus);
        }
예제 #10
0
        public static List<ForumThread> GetAll()
        {
            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();

            return objCaller.GetAll();
        }
예제 #11
0
 public static void DeletePhysical(int ID)
 {
     if (ID <= 0)
         return;
     ForumThreadDataMapper objCaller = new ForumThreadDataMapper();
     objCaller.DeletePhysical(ID);
 }
예제 #12
0
        public static void UpdateNumberViews(int ID)
        {
            if (ID <= 0)
                return;

            ForumThreadDataMapper objCaller = new ForumThreadDataMapper();
            objCaller.UpdateNumberViews(ID);
        }