Esempio n. 1
0
        public void AddBooking(Ride ride, Booking booking, Transport.Model.Client client)
        {
            var allRides     = _server.AddBooking(ride, booking, _currentEmployee, client);
            var employeeArgs = new EmployeeEventArgs(allRides, EmployeeEvent.BookingAdded);

            OnUpdateEvent(employeeArgs);
            Console.WriteLine(@"Make booking succeeded ....");
        }
Esempio n. 2
0
        public void AddClient(Transport.Model.Client client)
        {
            ClientDBRepository clientDBRepository = new ClientDBRepository(DBUtils.GetProperties());

            clientDBRepository.Save(client);
        }