Esempio n. 1
0
        public IEnumerable <PostDto> GetUserPosts(string userName)
        {
            var posts = _postProvider.GetUserPosts(userName);

            return(posts.Select(p => {
                //p.Comments = null;
                //p.Likes = null;
                return _mapper.Map <PostDto>(p);
            }));
        }