private static void CreateNewAirports(SqlCrud sql, List <AirportModel> airports) { foreach (var airport in airports) { sql.CreateAirport(airport); } }
private static void CreateNewAirport(SqlCrud sql) { // Test Data var airport = new AirportModel { IATACode = "ORD", Name = "O'Hare International Airport", City = "Chicago", State = "IL" }; sql.CreateAirport(airport); }