Esempio n. 1
0
 /// <summary>
 /// Retrieve list of ChapterContent.
 /// no parameters required to be passed in.
 /// </summary>
 /// <returns>List of ChapterContent</returns>
 public ChapterContentList GetAll()
 {
     using (ChapterContentDataAccess data = new ChapterContentDataAccess(ClientContext))
     {
         return(data.GetAll());
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Retrieve list of ChapterContent.
        /// </summary>
        /// <param name="fillChild"></param>
        /// <returns>List of ChapterContent</returns>
        public ChapterContentList GetAll(bool fillChild)
        {
            ChapterContentList chapterContentList = new ChapterContentList();

            using (ChapterContentDataAccess data = new ChapterContentDataAccess(ClientContext))
            {
                chapterContentList = data.GetAll();
            }
            if (fillChild)
            {
                foreach (ChapterContent chapterContentObject in chapterContentList)
                {
                    FillChapterContentWithChilds(chapterContentObject, fillChild);
                }
            }
            return(chapterContentList);
        }