private async Task DeleteControllerActionAsync() { try { if (await _dialogService.ShowQuestionDialogAsync( Translate("Confirm"), Translate("AreYouSureToDeleteControllerAction"), Translate("Yes"), Translate("No"), _disappearingTokenSource.Token)) { if (ControllerAction != null) { await _dialogService.ShowProgressDialogAsync( false, async (progressDialog, token) => await _creationManager.DeleteControllerActionAsync(ControllerAction), Translate("Deleting")); } await NavigationService.NavigateBackAsync(); } } catch (OperationCanceledException) { } }
private async Task DeleteControllerActionAsync() { try { if (await _dialogService.ShowQuestionDialogAsync("Confirm", "Are you sure to delete this controller action?", "Yes", "No", _disappearingTokenSource.Token)) { if (ControllerAction != null) { await _dialogService.ShowProgressDialogAsync( false, async (progressDialog, token) => await _creationManager.DeleteControllerActionAsync(ControllerAction), "Deleting..."); } await NavigationService.NavigateBackAsync(); } } catch (OperationCanceledException) { } }