private void InsertToursIntoRepository(IEnumerable <Tour> tours) { using (ITourRepository repository = new TourRepository(DatabaseSourceDefinitor.ConnectionString)) { repository.InsertTours(tours.ToArray()); } }