Exemplo n.º 1
0
 public List <Footballer> ListAll()
 {
     return(List_footballers.OrderBy(a => a.Name).ToList());
 }
Exemplo n.º 2
0
 public List <Footballer> ListOverThirty()
 {
     return(List_footballers.Where(f => f.Age > 30)
            .OrderByDescending(f => f.Level).ToList());
 }
Exemplo n.º 3
0
 public void AddFootballer(Footballer f)
 {
     List_footballers.Add(f);
     Team_level += f.Level * Team_coach.Level;
 }