コード例 #1
0
 /// <summary>
 /// Gets the tags by post.
 /// </summary>
 /// <param name="post">The post.</param>
 /// <returns></returns>
 public List<BBlogTag> GetTagsByPost(BBlogPost post)
 {
     using (var datas = new BlogTagDataManager())
     {
         return datas.GetTagsByPostID(post.PostID)
             .Select(x => { var a = Change(x); a.Post = post; return a; })
             .ToList();
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets all tags.
 /// </summary>
 /// <returns></returns>
 public List<BBlogTag> GetAllTags()
 {
     using (var datas = new BlogTagDataManager())
     {
         return datas.GetAllTags()
             .Select(x => Change(x))
             .ToList();
     }
 }