public void Modify(CarModel car) { db.OpenConnection(); db.Modify(car); db.CloseConnection(); }
public CarPresenter(ICarView view) { this.view = view; car = new CarModel(); InitializePresenter(); }
public void Add(CarModel car) { db.OpenConnection(); db.Insert(car); db.CloseConnection(); }