protected async override void OnAppearing() { base.OnAppearing(); var allCases = await service.GetAllCases(); List <Case> casesFiltered = new List <Case>(); foreach (Case c in allCases) { if (c.type == "Con" && c.decisionId == decisionId) { casesFiltered.Add(c); } } conList.ItemsSource = casesFiltered; }
protected async override void OnAppearing() { base.OnAppearing(); //await service.AddDecision(1, "Buying a car", 4, 6); List <Case> allCases = await service.GetAllCases(); List <Case> casesFiltered = new List <Case>(); foreach (Case c in allCases) { if (c.decisionId == decisionId) { casesFiltered.Add(c); } } //casesList.ItemsSource = casesFiltered; }