//METHODS private void FillPeopleCBB() { comboBoxPeople.Items.Clear(); foreach (Person p in personlogic.GetPeople()) { comboBoxPeople.Items.Add(p); } }
public async Task <ActionResult <IEnumerable <CatsByOwnerGender> > > GetCats() { var people = await personLogic.GetPeople(); if (people == null || people.Count() == 0) { return(NotFound()); } var catsByOwnerGender = catLogic.GetCatsByOwnerGender(people); return(Ok(catsByOwnerGender)); }
//METHODS private void UpdatePeopleListbox() { listBoxPeopleMan.Items.Clear(); comboBoxPeopleEnMan.Items.Clear(); comboBoxteacherWsMan.Items.Clear(); foreach (Person p in personlogic.GetPeople()) { listBoxPeopleMan.Items.Add(p); comboBoxPeopleEnMan.Items.Add(p); if (p is Teacher) { comboBoxteacherWsMan.Items.Add(p); } } }