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 ...."); }
public void AddClient(Transport.Model.Client client) { ClientDBRepository clientDBRepository = new ClientDBRepository(DBUtils.GetProperties()); clientDBRepository.Save(client); }