public IndividualTopicCommentResponse UpdateTopicComment(TopicComment topicComment) { var body = new { topic_comment = topicComment}; return GenericPut<IndividualTopicCommentResponse>(string.Format("topics/{0}/comments/{1}.json", topicComment.TopicId, topicComment.Id), body); }
public async Task<IndividualTopicCommentResponse> UpdateTopicCommentAsync(TopicComment topicComment) { var body = new { topic_comment = topicComment}; return await GenericPutAsync<IndividualTopicCommentResponse>(string.Format("topics/{0}/comments/{1}.json", topicComment.TopicId, topicComment.Id), body); }
public IndividualTopicCommentResponse CreateTopicComment(long topicId, TopicComment topicComment) { var body = new { topic_comment = topicComment }; return GenericPost<IndividualTopicCommentResponse>(string.Format("topics/{0}/comments.json", topicId), body); }
public async Task<IndividualTopicCommentResponse> CreateTopicCommentAsync(long topicId, TopicComment topicComment) { var body = new { topic_comment = topicComment }; return await GenericPostAsync<IndividualTopicCommentResponse>(string.Format("topics/{0}/comments.json", topicId), body); }