public List <Entities.RestaurantReview> DeleteReview(Entities.Reviews rev) { var revget = _http.Get <List <Entities.RestaurantReview> >("api/Reviews/" + rev.UserId); _http.Delete <List <Entities.Reviews> >("api/Reviews", revget[0].RevId); return(_http.Get <List <Entities.RestaurantReview> >("api/Reviews")); }
public List <Entities.RestaurantReview> AddReview(Entities.Reviews rev) { _http.Post <Entities.Reviews>("api/Reviews", rev); return(_http.Get <List <Entities.RestaurantReview> >("api/Reviews")); }