/// <summary>
        /// Gets the terms by content item id.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <param name="contentItemId">The content item id.</param>
        /// <returns>term collection</returns>
        internal static List <Term> GetTerms(this ContentItem item, int contentItemId)
        {
            ITermController ctl = Util.GetTermController();

            List <Term> _Terms = null;

            if (contentItemId == Null.NullInteger)
            {
                _Terms = new List <Term>();
            }
            else
            {
                _Terms = ctl.GetTermsByContent(contentItemId).ToList();
            }

            return(_Terms);
        }
        /// <summary>
        /// Gets the terms by vocabularyId.
        /// </summary>
        /// <param name="voc">The voc.</param>
        /// <param name="vocabularyId">The vocabulary id.</param>
        /// <returns>term collection.</returns>
        internal static List <Term> GetTerms(this Vocabulary voc, int vocabularyId)
        {
            ITermController ctl = Util.GetTermController();

            return(ctl.GetTermsByVocabulary(vocabularyId).ToList());
        }