示例#1
0
        public List <Post> Feed(User user)
        {
            List <Post> FeedPosts    = new List <Post>();
            var         usersCircles = _circle.GetByUser(user);

            foreach (var i in usersCircles)
            {
                List <Post> temp = _post.GetCirclePost(i);
                foreach (var j in temp)
                {
                    FeedPosts.Add(j);
                }
            }
            return(FeedPosts);
        }