Пример #1
0
        /// <summary> add a new passenger in the db
        /// </summary>
        public static void Add(PassngerDTO passenger)
        {
            UserDTO user = UserBL.Add(passenger);

            passenger.Identity = user.Identity;
            PassengerDal.AddPassenger(PassengerConverters.GetPassenger(passenger));
        }
Пример #2
0
        /// <summary> add a new driver in the db
        /// </summary>
        public static void Add(DriverDTO driver)
        {
            UserDTO u = UserBL.Add(driver);

            driver.Identity = u.Identity;
            DriverDal.AddDriver(Converters.DriverConverters.GetDriver(driver));
        }