Blog.Logic.Core.PostsLogic.GetMorePostsByTag C# (CSharp) Method

GetMorePostsByTag() public method

public GetMorePostsByTag ( string tagName, int skip ) : List
tagName string
skip int
return List
        public List<Post> GetMorePostsByTag(string tagName, int skip)
        {
            var posts = new List<Post>();
            try
            {
                var db = _postRepository.GetMorePostsByTag(tagName, 5, skip).ToList();
                db.ForEach(a => posts.Add(PostMapper.ToDto(a)));
                posts.ForEach(a => GetPostProperties(a));
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
            return posts;
        }