private async void OnSync() { try { await CloudStoreService.Sync(); await AlertService.ShowErrorAsync("Sync successful", "Notification", "ok"); } catch (Exception ex) { await AlertService.ShowErrorAsync(ex.Message, "Error", "ok"); } }