public static List<ForumPost> GetByParentPostID(int ParentPostID) { if (ParentPostID <= 0) return new List<ForumPost>(); ForumPostDataMapper objCaller = new ForumPostDataMapper(); return objCaller.GetByParentPostID(ParentPostID); }
public static void Update(ForumPost obj) { if (obj == null) throw new Exception("Object is null"); ForumPostDataMapper objCaller = new ForumPostDataMapper(); objCaller.Update(obj); }
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); }
public static ForumPost GetByIDWithIsDelete(int ID) { if (ID <= 0) return null; ForumPostDataMapper objCaller = new ForumPostDataMapper(); return objCaller.GetByID(ID, -1); }
public static int Add(ForumPost obj) { if (obj == null) throw new Exception("Object is null"); ForumPostDataMapper objCaller = new ForumPostDataMapper(); return objCaller.Add(obj); }
public static List<ForumPost> GetByThreadID(int ThreadID) { if (ThreadID <= 0) return new List<ForumPost>(); ForumPostDataMapper objCaller = new ForumPostDataMapper(); return objCaller.GetByThreadID(ThreadID); }
public static List<ForumPost> GetAll() { ForumPostDataMapper objCaller = new ForumPostDataMapper(); return objCaller.GetAll(); }
public static void DeletePhysical(int ID) { if (ID <= 0) return; ForumPostDataMapper objCaller = new ForumPostDataMapper(); objCaller.DeletePhysical(ID); }
public static void UpdateStatus(int ID, Enums.RootEnums.ForumPostStatus ForumPostStatus) { if (ID <= 0) return; ForumPostDataMapper objCaller = new ForumPostDataMapper(); objCaller.UpdateStatus(ID, ForumPostStatus); }
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); }
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); }