/// <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(); } }
/// <summary> /// Gets all tags. /// </summary> /// <returns></returns> public List<BBlogTag> GetAllTags() { using (var datas = new BlogTagDataManager()) { return datas.GetAllTags() .Select(x => Change(x)) .ToList(); } }