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))); }
public virtual bool EditPost(int postID, Post content, bool publish) { return(_wrapper.EditPost(postID, Username, Password, Map.From.Post(content), publish)); }