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