예제 #1
0
        public void AddCar(Car car, int personId)
        {
            PeopleRepository repo = new PeopleRepository(Properties.Settings.Default.ConStr);

            car.PersonId = personId;
            repo.AddCar(car);
        }
예제 #2
0
        public void AddCar(Car car)
        {
            int id = car.Id;

            car.PersonId = id;
            car.Id       = 0;
            var pr = new PeopleRepository(_connectionString);

            pr.AddCar(car);
        }