async Task ExecuteLoadJuntasCommand() { if (_clickRegulator.SetClicked(nameof(ExecuteLoadJuntasCommand), true)) { return; } //IsBusy = true; //IsRefreshing = true; try { JuntaDeVecinoService juntaDeVecinoService = new JuntaDeVecinoService(); JuntadeVecinosList.Clear(); var juntas = await juntaDeVecinoService.ObtenerJuntaDeVecinos(); foreach (var item in juntas) { JuntadeVecinosList.Add(item); } } catch (Exception ex) { await PageService.DisplayAlert("Error Message", ex.Message, "OK"); } finally { _clickRegulator.ClickDone(nameof(ExecuteLoadJuntasCommand)); IsBusy = false; //IsRefreshing = false; } }
private async Task ExecuteLoadIntegrantesCommand() { if (_clickRegulator.SetClicked(nameof(LoadIntegrantesCommand), true)) { return; } //IsBusy = true; //IsRefreshing = true; try { JuntaDeVecinoService juntaDeVecinoService = new JuntaDeVecinoService(); IntegrantesList.Clear(); var integrantes = await juntaDeVecinoService.ObtenerIntegrantesporJuntaDeVecinoID(selectedJunta.JuntaDeVecinosId); foreach (var item in integrantes) { IntegrantesList.Add(item); } } catch (Exception ex) { await PageService.DisplayAlert("Error Message", ex.Message, "OK"); } finally { _clickRegulator.ClickDone(nameof(LoadIntegrantesCommand)); //IsBusy = false; //IsRefreshing = false; } }