private async Task SaveCommandExecute() { try { if (_settings.IsOnline) { IsBusy = true; ValidateFields(); if (_mCEmail.IsValid && _fCCIEmail.IsValid) { var response = await _complaintService.ConfigCityMail(MCEmail.Value.Trim(), FCCIEmail.Value.Trim(), _settings.UserCityId); IsBusy = false; if (response == true) { await PageDialogService.DisplayAlertAsync(null, "Your detail has been save successfully.", "OK"); } } else { IsBusy = false; await PageDialogService.DisplayAlertAsync(null, AppAlertMessage.NoInternetConnections, "OK"); } } else { IsBusy = false; await PageDialogService.DisplayAlertAsync(null, AppAlertMessage.TechnicalError, "OK"); } } catch (Exception) { IsBusy = false; await PageDialogService.DisplayAlertAsync(null, AppAlertMessage.TechnicalError, "OK"); } }