void ClearDatabase() { IEnumerable <Flight> flightEntities = Flights.ToList(); if (flightEntities.Count() > 0) { Flights.RemoveRange(flightEntities); SaveChanges(); } }
void ClearDatabase() { IEnumerable <Flight> flightEntities = Flights.ToList(); if (flightEntities.Count() > 0) { Flights.RemoveRange(flightEntities); SaveChanges(); } }