Exemplo n.º 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));
        }
Exemplo n.º 2
0
 /// <summary>  return all the passengers
 /// </summary>
 public static List <PassngerDTO> GetPassengers()
 {
     return(PassengerConverters.GetListPassengerDTO(DAL.PassengerDal.GetPassengers()));
 }