public List <Person> GetAllPeople() { PeopleCarsManager pcm = new PeopleCarsManager(_connStr); List <Person> people = pcm.GetAllPeople(); return(people); }
public Person GetPersonForId(int id) { PeopleCarsManager pcm = new PeopleCarsManager(_connStr); return(pcm.GetPersonForId(id)); }
public void DeleteCars(Person person) { PeopleCarsManager pcm = new PeopleCarsManager(_connStr); pcm.deleteCarsForPerson(person.Id); }
public void AddCarForPerson(Car c) { PeopleCarsManager pcm = new PeopleCarsManager(_connStr); pcm.AddCarForPerson(c); }
public void AddPerson(Person p) { PeopleCarsManager pcm = new PeopleCarsManager(_connStr); pcm.AddPerson(p); }
public IEnumerable <Car> GetAllCarsForPerson(int personId) { PeopleCarsManager pcm = new PeopleCarsManager(_connStr); return(pcm.GetAllCarsForPerson(personId)); }