/// <summary>
 /// Gets the post by post ID.
 /// </summary>
 /// <param name="postID">The post ID.</param>
 /// <returns></returns>
 public BBlogPost GetPostByPostID(
     int postID)
 {
     using (var datas = new BlogPostDataManager())
     {
         return Change(datas.GetBlogPostByPostID(postID));
     }
 }
 /// <summary>
 /// Gets all posts.
 /// </summary>
 /// <returns></returns>
 public List<BBlogPost> GetAllPosts()
 {
     using (var datas = new BlogPostDataManager())
     {
         return
             datas.GetAllBlogPosts()
             .Select(x => Change(x))
             .ToList();
     }
 }
 /// <summary>
 /// Gets the posts by category ID.
 /// </summary>
 /// <param name="categoryID">The category ID.</param>
 /// <returns></returns>
 public List<BBlogPost> GetPostsByCategoryID(
     int categoryID)
 {
     using (var datas = new BlogPostDataManager())
     {
         return
             datas.GetBlogPostsByCategory(categoryID)
             .Select(x => Change(x))
             .ToList();
     }
 }
 /// <summary>
 /// Gets the posts by blog.
 /// </summary>
 /// <param name="blog">The blog.</param>
 /// <returns></returns>
 public List<BBlogPost> GetPostsByBlog(
     BBlog blog)
 {
     using (var datas = new BlogPostDataManager())
     {
         return
             datas.GetBlogPostsByBlogID(blog.BlogID)
             .Select(x => { var a = Change(x); a.Blog = blog; return a; })
             .ToList();
     }
 }