Exemplo n.º 1
0
 private static void CreateNewAirports(SqlCrud sql, List <AirportModel> airports)
 {
     foreach (var airport in airports)
     {
         sql.CreateAirport(airport);
     }
 }
Exemplo n.º 2
0
        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);
        }