public static PostDetail Build(PostDetailEntity obj)
 {
     return(new PostDetail()
     {
         ModifyDate = obj.ModifyDate,
         PostContent = obj.PostContent
     });
 }
        public PostDetail Put(int id, [FromBody] PostDetailEntity obj)
        {
            PostDetail postDetail = PostDetailBuilder.Build(obj);

            return(this.PostDetailRepository.Update(postDetail, id));
        }
        public PostDetail Post([FromBody] PostDetailEntity obj)
        {
            PostDetail postDetail = PostDetailBuilder.Build(obj);

            return(this.PostDetailRepository.Insert(postDetail));
        }