Exemple #1
0
        public static ForumPermission GetForumPermission(LoginUser loginUser, int categoryID)
        {
            ForumPermissions forumPermissions = new ForumPermissions(loginUser);

            forumPermissions.LoadByCategoryID(categoryID);
            if (forumPermissions.IsEmpty)
            {
                return(null);
            }
            else
            {
                return(forumPermissions[0]);
            }
        }
Exemple #2
0
 public ForumPermission(DataRow row, ForumPermissions forumPermissions) : base(row, forumPermissions)
 {
     _forumPermissions = forumPermissions;
 }