public DataTable GetExistingdDriverBL() { DataTable dt = new DataTable(); DriverDA driverDAOBj = new DriverDA(); dt = driverDAOBj.GetExistingDriverFromDB(); return(dt); }
public bool DeleteADriverBL(Driver aDriver) { if (aDriver.DriverNo == "" || aDriver.Name == "" || aDriver.ContactNo == "") { return(false); } else { DriverDA driverDAOBj = new DriverDA(); bool result = driverDAOBj.DeleteDriverFromDB(aDriver); return(result); } }
public bool UpdateNewDriverBL(Driver aDriver) { if (aDriver.DriverNo == "" || aDriver.Name == "" || aDriver.ContactNo == "") { return(false); } else { DriverDA driverDAOBj = new DriverDA(); bool result = driverDAOBj.UpdateNewDriverToDB(aDriver); return(result); } }