public override IList <string> GetSubChapters(string chapterId)
        {
            using (TransactionScope transaction = new TransactionScope(mConfiguration))
            {
                ChapterVersionDataStore chapVersion = new ChapterVersionDataStore(transaction);

                ChapterVersion cv        = chapVersion.FindAllItems().First(x => x.Id.Equals(chapterId));
                XHTMLText      xhtmlText = new XHTMLText();

                IList <string> subChapters = xhtmlText.GetSubChapters(cv.Content);

                return(subChapters);
            }
        }
        public override IList <SubSectionChap> GetChapterSubSection(string chapterId)
        {
            using (TransactionScope transaction = new TransactionScope(mConfiguration))
            {
                ChapterVersionDataStore chapVersion = new ChapterVersionDataStore(transaction);

                ChapterVersion cv        = chapVersion.FindAllItems().First(x => x.Id.Equals(chapterId));
                XHTMLText      xhtmlText = new XHTMLText();

                IList <string> subChapters = xhtmlText.GetSubChapters(cv.Content);

                List <SubSectionChap> chapSections = new List <SubSectionChap>();
                foreach (string subSec in subChapters)
                {
                    chapSections.Add(new SubSectionChap {
                        ChapId = chapterId, AnchorTag = subSec
                    });
                }
                return(chapSections);
            }
        }