public List <Soccer> GetByName() { var result = new List <Soccer>(); result = Soccers.OrderBy(s => s.Name).ToList(); return(result); }
public List <Soccer> GetBySkill() { var result = new List <Soccer>(); result = Soccers.Where(s => s.Age > 30).OrderByDescending(s => s.Skill).ToList(); return(result); }
public void Add(Soccer soccer) { Soccers.Add(soccer); }