예제 #1
0
        public void DeleteGroup(int GroupID)
        {
            BoardForum forum = _boardForumRepository.GetForumByGroupID(GroupID);

            if (forum != null)
            {
                _boardPostRepository.DeletePostsByForumID(forum.ForumID);
                _groupForumRepository.DeleteGroupForum(forum.ForumID, GroupID);
                _boardForumRepository.DeleteForum(forum);
            }
            _groupMemberRepository.DeleteAllGroupMembersForGroup(GroupID);
            _groupRepository.DeleteGroup(GroupID);
            LoadData();
        }