예제 #1
0
 /// <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();
     }
 }