test ding

This commit is contained in:
Beppe Vanrolleghem
2019-08-07 13:09:09 +02:00
parent a50e4d0e44
commit e32405674a
5 changed files with 52 additions and 15 deletions

View File

@@ -110,11 +110,13 @@ namespace Logic
public Person getPerson(int id)
{
foreach (Person b in persons)
{
if (b.Id == id) return b;
}
throw new Exception("No bets found with that id");
return persons.FindLast(x => id == x.Id);
}
public List<Person> filter(List<Person> p)
{
return filter(p);
}
public Ploeg getPloeg(int id)