コード例 #1
0
        //Get post by post id
        public IHttpActionResult Get(int id)
        {
            PostServices postService = CreatePostService();
            var          post        = postService.GetPostByid(id);

            return(Ok(post));
        }