public void Invoke(IGames ser) { Console.WriteLine("Add player"); int index = Menu.IndexGames(); Console.Write("Add name of player: "); string name = Validator.validator_name(Console.ReadLine()); Console.WriteLine("Add surname of player"); string surname = Validator.validator_name(Console.ReadLine()); ser.AddPlayer(name, surname, index); }