public static void Update(Review reviewToEdit) { // Convert input from Review object to JSON string type string jsonReview = JsonConvert.SerializeObject(reviewToEdit); var apiCallTask = ApiHelper.Put(reviewToEdit.ReviewId, reviewToEdit.user_name, jsonReview); }
public static void Put(Review review) { string jsonReview = JsonConvert.SerializeObject(review); var apiCallTask = ApiHelper.Put(review.ReviewId, jsonReview); }
public static void AddReview(Review newReview) { // Convert input from Review object to JSON string type string jsonReview = JsonConvert.SerializeObject(newReview); var apiCallTask = ApiHelper.Post(jsonReview); }