public async Task <WallResult> Get() { WallResult result = new WallResult(); // First Get All friends var a = await friends.Get(); List <GetFriendModel> Friends = a.ToList(); foreach (GetFriendModel friend in Friends) { var b = await posts.Get(friend.FriendUserId); List <PostDetailsOutputModel> Posts = b.ToList(); foreach (PostDetailsOutputModel post in Posts) { var c = await likes.Get(post.Id); result.Posts.Add(new PostWithLikesDetailsOutputModel() { User = friend.FriendUserId, Title = post.Title, Text = post.Text, Likes = c.Likes }); } } return(result); }