예제 #1
0
 //METHODS
 private void FillPeopleCBB()
 {
     comboBoxPeople.Items.Clear();
     foreach (Person p in personlogic.GetPeople())
     {
         comboBoxPeople.Items.Add(p);
     }
 }
예제 #2
0
        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));
        }
예제 #3
0
 //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);
         }
     }
 }