public static void Delete(int id) { var apiCallTask = ApiHelper.Delete(id); }
public static void Put(Review review) { string jsonReview = JsonConvert.SerializeObject(review); var apiCallTask = ApiHelper.Put(review.ReviewId, jsonReview); }
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 Remove(int id, string user_name) { var apiCallTask = ApiHelper.Delete(id, user_name); }
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); }