public ForumInfo ForumSave(int PortalId, int ModuleId, int ForumId, int ParentId, bool AllowTopics, string Name, string Description, int SortOrder, bool Active, bool Hidden, int TopicCount, int ReplyCount, int LastPostId, string Slug, int PermissionId, int SettingId, string EmailAddress, float SiteMapPriority) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); ForumInfo fi = new ForumInfo(); if (ForumId > 0) { fi = fc.GetForum(ForumId); } if (fi == null) { fi = new ForumInfo(); fi.TopicCount = 0; fi.ReplyCount = 0; fi.LastPostId = 0; } fi.ForumId = ForumId; fi.PortalId = PortalId; fi.ModuleId = ModuleId; fi.ParentId = ParentId; fi.AllowTopics = AllowTopics; fi.Name = Name; fi.Description = Description; fi.SortOrder = SortOrder; fi.Active = Active; fi.Hidden = Hidden; fi.Slug = Slug; fi.PermissionId = PermissionId; fi.SettingId = SettingId; fi.EmailAddress = EmailAddress; fi.SiteMapPriority = SiteMapPriority; fi.CreatedByUserId = -1; fi.LastModifiedByUserId = -1; fc.SaveForum(fi); return fi; }
public ForumInfo ForumGet(int ForumId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); ForumInfo fi = fc.GetForum(ForumId); return(fi); }
public RankInfo RankGet(int portalId, int moduleId, int rankId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); RankInfo ri = fc.GetRank(rankId); return(ri); }
public List <FilterInfo> FilterList(int PortalId, int ModuleId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); List <FilterInfo> fl = fc.GetAllFilters(PortalId, ModuleId, -1); return(fl); }
public List <ForumInfo> ForumsList(int ModuleId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); List <ForumInfo> fl = fc.GetModuleForums(ModuleId); return(fl); }
public List <RankInfo> RanksList(int portalId, int moduleId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); List <RankInfo> rl = fc.GetModuleRank(moduleId); return(rl); }
public bool RankDelete(int portalId, int moduleId, int rankId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); try { fc.DeleteRank(rankId, portalId); return true; } catch { return false; } }
public bool FilterDelete(int PortalId, int ModuleId, int FilterId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); try { fc.DeleteFilter(FilterId, PortalId); return true; } catch { return false; } }
public bool FilterDelete(int PortalId, int ModuleId, int FilterId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); try { fc.DeleteFilter(FilterId, PortalId); return(true); } catch { return(false); } }
public bool ForumDelete(int portalId, int moduleId, int forumId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); try { fc.DeleteForum(forumId, moduleId, portalId); return(true); } catch { return(false); } }
public FilterInfo FilterGet(int PortalId, int ModuleId, int FilterId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); FilterInfo fi = fc.GetFilter(FilterId); if (fi == null) { fi = new FilterInfo(); fi.PortalId = PortalId; fi.ModuleId = ModuleId; fi.FilterId = -1; } return fi; }
public FilterInfo FilterGet(int PortalId, int ModuleId, int FilterId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); FilterInfo fi = fc.GetFilter(FilterId); if (fi == null) { fi = new FilterInfo(); fi.PortalId = PortalId; fi.ModuleId = ModuleId; fi.FilterId = -1; } return(fi); }
public RankInfo RankSave(int portalId, int moduleId, int rankId, string rankName, int minPosts, int maxPosts, string display) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); RankInfo obj = new RankInfo(); if (rankId > 0) { obj = fc.GetRank(rankId); } obj.PortalId = portalId; obj.ModuleId = moduleId; obj.RankId = rankId; obj.RankName = rankName; obj.MinPosts = minPosts; obj.MaxPosts = maxPosts; obj.Display = display; obj = fc.SaveRank(obj); return obj; }
public FilterInfo FilterSave(int PortalId, int ModuleId, int FilterId, int ForumId, string Find, string Replace, string FilterType, bool ApplyOnSave, bool ApplyOnRender) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); FilterInfo fi = new FilterInfo(); if (FilterId > 0) { fi = fc.GetFilter(FilterId); } fi.PortalId = PortalId; fi.ModuleId = ModuleId; fi.FilterId = FilterId; fi.ForumId = ForumId; fi.Find = Find; fi.Replace = Replace; fi.FilterType = FilterType; fi.ApplyOnRender = ApplyOnRender; fi.ApplyOnSave = ApplyOnSave; fi = fc.SaveFilter(fi); return fi; }
public RankInfo RankSave(int portalId, int moduleId, int rankId, string rankName, int minPosts, int maxPosts, string display) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); RankInfo obj = new RankInfo(); if (rankId > 0) { obj = fc.GetRank(rankId); } obj.PortalId = portalId; obj.ModuleId = moduleId; obj.RankId = rankId; obj.RankName = rankName; obj.MinPosts = minPosts; obj.MaxPosts = maxPosts; obj.Display = display; obj = fc.SaveRank(obj); return(obj); }
public FilterInfo FilterSave(int PortalId, int ModuleId, int FilterId, int ForumId, string Find, string Replace, string FilterType, bool ApplyOnSave, bool ApplyOnRender) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); FilterInfo fi = new FilterInfo(); if (FilterId > 0) { fi = fc.GetFilter(FilterId); } fi.PortalId = PortalId; fi.ModuleId = ModuleId; fi.FilterId = FilterId; fi.ForumId = ForumId; fi.Find = Find; fi.Replace = Replace; fi.FilterType = FilterType; fi.ApplyOnRender = ApplyOnRender; fi.ApplyOnSave = ApplyOnSave; fi = fc.SaveFilter(fi); return(fi); }
public ForumInfo ForumSave(int PortalId, int ModuleId, int ForumId, int ParentId, bool AllowTopics, string Name, string Description, int SortOrder, bool Active, bool Hidden, int TopicCount, int ReplyCount, int LastPostId, string Slug, int PermissionId, int SettingId, string EmailAddress, float SiteMapPriority) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); ForumInfo fi = new ForumInfo(); if (ForumId > 0) { fi = fc.GetForum(ForumId); } if (fi == null) { fi = new ForumInfo(); fi.TopicCount = 0; fi.ReplyCount = 0; fi.LastPostId = 0; } fi.ForumId = ForumId; fi.PortalId = PortalId; fi.ModuleId = ModuleId; fi.ParentId = ParentId; fi.AllowTopics = AllowTopics; fi.Name = Name; fi.Description = Description; fi.SortOrder = SortOrder; fi.Active = Active; fi.Hidden = Hidden; fi.Slug = Slug; fi.PermissionId = PermissionId; fi.SettingId = SettingId; fi.EmailAddress = EmailAddress; fi.SiteMapPriority = SiteMapPriority; fi.CreatedByUserId = -1; fi.LastModifiedByUserId = -1; fc.SaveForum(fi); return(fi); }
public List<FilterInfo> FilterList(int PortalId, int ModuleId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); List<FilterInfo> fl = fc.GetAllFilters(PortalId, ModuleId, -1); return fl; }
public RankInfo RankGet(int portalId, int moduleId, int rankId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); RankInfo ri = fc.GetRank(rankId); return ri; }
public List<RankInfo> RanksList(int portalId, int moduleId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); List<RankInfo> rl = fc.GetModuleRank(moduleId); return rl; }
public List<ForumInfo> ForumsList(int ModuleId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); List<ForumInfo> fl = fc.GetModuleForums(ModuleId); return fl; }
public ForumInfo ForumGet(int ForumId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); ForumInfo fi = fc.GetForum(ForumId); return fi; }
public bool ForumDelete(int portalId, int moduleId, int forumId) { Modules.Forums.Components.Controllers.ForumsController fc = new Modules.Forums.Components.Controllers.ForumsController(); try { fc.DeleteForum(forumId, moduleId, portalId); return true; } catch { return false; } }