예제 #1
0
        public virtual bool EditPost(Post post, bool publish)
        {
            var content = Map.From.Post(post);

            OnAfterPostMapping(post, content);
            return(Convert.ToBoolean(_wrapper.EditPost(post.PostID.ToString(), Username, Password, content, publish)));
        }
예제 #2
0
 public virtual bool EditPost(int postID, Post content, bool publish)
 {
     return(_wrapper.EditPost(postID, Username, Password, Map.From.Post(content), publish));
 }