public static Comment GetCommentDetails(int categoryId, int placeId, int CommentId) { var apiCallTask = ApiCommentHelper.GetCommentDetails(categoryId, placeId, 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 categoryId, int placeId, int commentId) { var apiCallTask = ApiCommentHelper.DeleteComment(categoryId, placeId, commentId); }
public static void PutComment(int categoryId, int placeId, Comment comment) { string jsonComment = JsonConvert.SerializeObject(comment); var apiCallTask = ApiCommentHelper.PutComment(categoryId, placeId, comment.CommentId, jsonComment); }