コード例 #1
0
        public DataTable GetExistingdDriverBL()
        {
            DataTable dt          = new DataTable();
            DriverDA  driverDAOBj = new DriverDA();

            dt = driverDAOBj.GetExistingDriverFromDB();
            return(dt);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
            }
        }