public static Comment GetCommentDetails(int boardId, int postId, int CommentId) { var apiCallTask = ApiCommentHelper.GetCommentDetails(boardId, postId, CommentId); var result = apiCallTask.Result; JObject jsonResponse = JsonConvert.DeserializeObject <JObject>(result); Comment comment = JsonConvert.DeserializeObject <Comment>(jsonResponse.ToString()); return(comment); }
public static void DeleteComment(int boardId, int postId, int commentId) { var apiCallTask = ApiCommentHelper.DeleteComment(boardId, postId, commentId); }
public static void PutComment(int boardId, int postId, Comment comment) { string jsonComment = JsonConvert.SerializeObject(comment); var apiCallTask = ApiCommentHelper.PutComment(boardId, postId, comment.CommentId, jsonComment); }