/// <summary>
 /// Gets the page by page ID.
 /// </summary>
 /// <param name="pageID">The page ID.</param>
 /// <returns></returns>
 public BBlogPage GetPageByPageID(
    int pageID)
 {
     using (var datas = new BlogPageDataManager())
     {
         return
             Change(datas.GetBlogPageByPageID(pageID));
     }
 }
 /// <summary>
 /// Gets all pages.
 /// </summary>
 /// <returns></returns>
 public List<BBlogPage> GetAllPages()
 {
     using (var datas = new BlogPageDataManager())
     {
         return
             datas.GetAllBlogPages()
             .Select(x => Change(x))
             .ToList();
     }
 }
 /// <summary>
 /// Gets the pages by parent page.
 /// </summary>
 /// <param name="parentPage">The parent page.</param>
 /// <returns></returns>
 public List<BBlogPage> GetPagesByParentPage(
    BBlogPage parentPage)
 {
     using (var datas = new BlogPageDataManager())
     {
         return
             datas.GetBlogPagesByParentPageID(parentPage.PageID)
             .Select(x => { var a = Change(x); a.Parent = parentPage; return a; })
             .ToList();
     }
 }
 /// <summary>
 /// Gets the pages by blog.
 /// </summary>
 /// <param name="blog">The blog.</param>
 /// <returns></returns>
 public List<BBlogPage> GetPagesByBlog(
     BBlog blog)
 {
     using (var datas = new BlogPageDataManager())
     {
         return
             datas.GetBlogPagesByBlogID(blog.BlogID)
             .Select(x => { var a = Change(x); a.Blog = blog; return a; })
             .ToList();
     }
 }