improve E-referral

merge-requests/226/merge
Elham Rababah 4 years ago
parent 37d9eae9ea
commit 3fab844ac9

@ -105,20 +105,21 @@ class EReferralService extends BaseService {
SearchEReferralRequestModel searchEReferralRequestModel SearchEReferralRequestModel searchEReferralRequestModel
) async { ) async {
hasError = false; hasError = false;
await baseAppClient.post(GET_E_REFERRALS, // TODO return this code when the fix the server
onSuccess: (dynamic response, int statusCode) { // await baseAppClient.post(GET_E_REFERRALS,
print("EEEEEE"); // onSuccess: (dynamic response, int statusCode) {
// TODO Waiting for fix service // print("EEEEEE");
// ToDo change this one when you have data // // TODO Waiting for fix service
_allReferral.clear(); // // ToDo change this one when you have data
// response['ListCities'].forEach((city) { // _allReferral.clear();
// _allReferral // // response['ListCities'].forEach((city) {
// .add(SearchEReferralResponseModel.fromJson(city)); // // _allReferral
// }); // // .add(SearchEReferralResponseModel.fromJson(city));
// // });
}, onFailure: (String error, int statusCode) { //
hasError = true; // }, onFailure: (String error, int statusCode) {
super.error = error; // hasError = true;
}, body: searchEReferralRequestModel.toJson()); // super.error = error;
// }, body: searchEReferralRequestModel.toJson());
} }
} }

Loading…
Cancel
Save