public void AddCar(Car c)
 {
     using (var context = new PeopleCarContext(_connection))
     {
         context.Cars.Add(c);
         context.SaveChanges();
     }
 }
 public void DeleteCars(int id)
 {
     using (var context = new PeopleCarContext(_connection))
     {
         context.RemoveRange(context.Cars.Where(c => c.PersonId == id));
         context.SaveChanges();
     }
 }
 public void AddPerson(Person p)
 {
     using (var context = new PeopleCarContext(_connection))
     {
         context.People.Add(p);
         context.SaveChanges();
     }
 }