public PostDTO GetPostByTitle(string title) { Post post = _svcPost.GetPostByTitle(title); if (post != null) { PostDTO postDTO = iMapper.Map <Post, PostDTO>(post); return(postDTO); } return(null); }