private static void AddPlayerToTeam(string firstName, string lastName, DateTime dateOfBirth, decimal salary, string teamName) { Team team = League.Teams.FirstOrDefault(t => t.Name == teamName); Player player = new Player(firstName, lastName, dateOfBirth, salary, team); team.AddPlayer(player); Console.WriteLine($" -> {firstName} {lastName} was added to {teamName}"); }
public void AddPlayer(Player player) { throw new NotImplementedException(); }