Пример #1
0
        public static List<ForumPost> GetByParentPostID(int ParentPostID)
        {
            if (ParentPostID <= 0)
                return new List<ForumPost>();

            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            return objCaller.GetByParentPostID(ParentPostID);
        }
Пример #2
0
        public static void Update(ForumPost obj)
        {
            if (obj == null)
                throw new Exception("Object is null");

            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            objCaller.Update(obj);
        }
Пример #3
0
        public static List<ForumPost> GetByPublishedForumID(int ForumID)
        {
            if (ForumID <= 0)
                return new List<ForumPost>();

            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            return objCaller.GetByPublishedForumID(ForumID, Enums.RootEnums.ForumPostStatus.Active);
        }
Пример #4
0
        public static ForumPost GetByIDWithIsDelete(int ID)
        {
            if (ID <= 0)
                return null;

            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            return objCaller.GetByID(ID, -1);
        }
Пример #5
0
        public static int Add(ForumPost obj)
        {
            if (obj == null)
                throw new Exception("Object is null");

            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            return objCaller.Add(obj);
        }
Пример #6
0
        public static List<ForumPost> GetByThreadID(int ThreadID)
        {
            if (ThreadID <= 0)
                return new List<ForumPost>();

            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            return objCaller.GetByThreadID(ThreadID);
        }
Пример #7
0
        public static List<ForumPost> GetAll()
        {
            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            return objCaller.GetAll();
        }
Пример #8
0
 public static void DeletePhysical(int ID)
 {
     if (ID <= 0)
         return;
     ForumPostDataMapper objCaller = new ForumPostDataMapper();
     objCaller.DeletePhysical(ID);
 }
Пример #9
0
 public static void UpdateStatus(int ID, Enums.RootEnums.ForumPostStatus ForumPostStatus)
 {
     if (ID <= 0)
         return;
     ForumPostDataMapper objCaller = new ForumPostDataMapper();
     objCaller.UpdateStatus(ID, ForumPostStatus);
 }
Пример #10
0
        public static List<ForumPost> GetBySearch(string keyword, int ForumID, int ThreadID, int ParentPostID, int UserID, Enums.RootEnums.ForumPostStatus ForumPostStatus)
        {
            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            return objCaller.GetBySearch(keyword, ForumID, ThreadID, ParentPostID, UserID, ForumPostStatus);
        }
Пример #11
0
        public static List<ForumPost> GetByPublishedThreadID(int ThreadID, int PageNumber, int PageSize, ref int ResultCount)
        {
            if (ThreadID <= 0)
                return new List<ForumPost>();

            ForumPostDataMapper objCaller = new ForumPostDataMapper();

            return objCaller.GetByPublishedThreadIDWithPaging(ThreadID, Enums.RootEnums.ForumPostStatus.Active, PageNumber, PageSize, ref ResultCount);
        }