Example #1
0
        public PostDTO GetPostById(int id)
        {
            Wcf.Post post    = _svcPost.GetPostById(id);
            var      postDTO = iMapper.Map <Post, PostDTO>(post);

            return(postDTO);
        }
Example #2
0
        // IPost implementation methods
        public PostDTO GetPostById(int id)
        {
            Wcf.Post post = _svcPost.GetPostById(id);
            // Reconstructie obiecte cunoscute in serviciu
            PostDTO postDTO = iMapper.Map <Post, PostDTO>(post);

            return(postDTO);
        }