Example #1
0
        public ForumGroup SaveInfo()
        {
            ForumGroup forumGroup = ForumManager.GetForumGroupById(this.ForumGroupId);
            DateTime   nowDT      = DateTime.UtcNow;

            if (forumGroup != null)
            {
                forumGroup = ForumManager.UpdateForumGroup(forumGroup.ForumGroupId,
                                                           txtName.Text, txtDescription.Text, txtDisplayOrder.Value, forumGroup.CreatedOn, nowDT);
            }
            else
            {
                forumGroup = ForumManager.InsertForumGroup(txtName.Text,
                                                           txtDescription.Text, txtDisplayOrder.Value, nowDT, nowDT);
            }

            return(forumGroup);
        }