Blog.Services.Implementation.PostsService.SetPostProperties C# (CSharp) Method

SetPostProperties() private method

private SetPostProperties ( IEnumerable posts ) : List
posts IEnumerable
return List
        private List<Post> SetPostProperties(IEnumerable<Post> posts)
        {
            var tmpPosts = new List<Post>();

            foreach (var post in posts)
            {
                post.Comments = _commentsLogic.GetTopComments(post.Id, 5);
                post.PostLikes = _postLikesLogic.Get(post.Id);
                tmpPosts.Add(post);
            }

            return tmpPosts;
        }
    }