public PostDTO GetPostById(int id) { Wcf.Post post = _svcPost.GetPostById(id); var postDTO = iMapper.Map <Post, PostDTO>(post); return(postDTO); }
// 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); }