Пример #1
0
 public List <Person> GetOlderThanThirty()
 {
     return(Task1Repo.GetPersons().Where(p => p.Age > 30).ToList());
 }
Пример #2
0
 public IReadOnlyCollection <Person> GetAllPersons()
 {
     return(Task1Repo.GetPersons());
 }