/// <summary>
        /// This should only run after the Post exists in the data store.
        /// </summary>
        /// <returns>The newly created ContentItemID from the data store.</returns>
        /// <remarks>This is for the first question in the thread. Not for replies or items with ParentID > 0.</remarks>
        internal ContentItem CreateContentItem(AlbumInfo objPost, int tabId)
        {
            var typeController  = new ContentTypeController();
            var colContentTypes = (from t in typeController.GetContentTypes() where t.ContentType == Constants.ContentTypeName select t);
            int contentTypeID;

            if (colContentTypes.Count() > 0)
            {
                var contentType = colContentTypes.Single();
                contentTypeID = contentType == null?CreateContentType() : contentType.ContentTypeId;
            }
            else
            {
                contentTypeID = CreateContentType();
            }

            var objContent = new ContentItem
            {
                Content       = objPost.Body,
                ContentTypeId = contentTypeID,
                Indexed       = false,
                ContentKey    = "view=" + Constants.PageScope.Question.ToString().ToLower() + "&id=" + objPost.PostId,
                ModuleID      = objPost.ModuleID,
                TabID         = tabId
            };

            objContent.ContentItemId = Util.GetContentController().AddContentItem(objContent);

            // Add Terms
            var cntTerm = new TermDnnController();

            cntTerm.ManageQuestionTerms(objPost, objContent);

            return(objContent);
        }
        /// <summary>
        /// This is used to update the content in the ContentItems table. Should be called when a question is updated.
        /// </summary>
        internal void UpdateContentItem(AlbumInfo objPost, int tabId)
        {
            var objContent = Util.GetContentController().GetContentItem(objPost.ContentItemId);

            if (objContent == null)
            {
                return;
            }
            objContent.Content    = objPost.Body;
            objContent.TabID      = tabId;
            objContent.ContentKey = "view=" + Constants.PageScope.Question.ToString().ToLower() + "&id=" + objPost.PostId;

            Util.GetContentController().UpdateContentItem(objContent);

            // Update Terms
            var cntTerm = new TermDnnController();

            cntTerm.ManageQuestionTerms(objPost, objContent);
        }