update service calls
This commit is contained in:
@@ -83,6 +83,9 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
|||||||
await MihMzansiDirectoryServices()
|
await MihMzansiDirectoryServices()
|
||||||
.deleteBusinessReview(
|
.deleteBusinessReview(
|
||||||
widget.businessReview!.idbusiness_ratings,
|
widget.businessReview!.idbusiness_ratings,
|
||||||
|
widget.businessReview!.business_id,
|
||||||
|
widget.businessReview!.rating_score,
|
||||||
|
widget.business.rating,
|
||||||
)
|
)
|
||||||
.then((statusCode) {
|
.then((statusCode) {
|
||||||
Navigator.of(context).pop(); //Remove loading dialog
|
Navigator.of(context).pop(); //Remove loading dialog
|
||||||
@@ -159,9 +162,12 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
|||||||
await MihMzansiDirectoryServices()
|
await MihMzansiDirectoryServices()
|
||||||
.updateBusinessReview(
|
.updateBusinessReview(
|
||||||
widget.businessReview!.idbusiness_ratings,
|
widget.businessReview!.idbusiness_ratings,
|
||||||
|
widget.businessReview!.business_id,
|
||||||
_reviewTitleController.text,
|
_reviewTitleController.text,
|
||||||
_reviewDescriptionController.text,
|
_reviewDescriptionController.text,
|
||||||
_reviewScoreController.text,
|
_reviewScoreController.text,
|
||||||
|
widget.businessReview!.rating_score,
|
||||||
|
widget.business.rating,
|
||||||
)
|
)
|
||||||
.then((statusCode) {
|
.then((statusCode) {
|
||||||
Navigator.of(context).pop(); //Remove loading dialog
|
Navigator.of(context).pop(); //Remove loading dialog
|
||||||
|
|||||||
Reference in New Issue
Block a user