Exemplo n.º 1
0
 public void UpdateDriver(Driver driver)
 {
     if (ValidateDriver(driver))
     {
         DriversDal driverDAL = new DriversDal();
         // check if the car exists
         if (driverDAL.CheckDriverExists(driver))
         {
             driverDAL.UpdateDriver(driver);
         }
         else
         {
             driverDAL.InsertDriver(driver);
         }
     }
 }
Exemplo n.º 2
0
        public List <Driver> SelectDrivers()
        {
            DriversDal driverDAL = new DriversDal();

            return(driverDAL.SelectDrivers());
        }
Exemplo n.º 3
0
        public void DeleteDriver(Driver driver)
        {
            DriversDal driverDAL = new DriversDal();

            driverDAL.DeleteDriver(driver);
        }