public string AddBooking(string id, string regNr, DateTime from, DateTime to)
        {
            Car      car      = r.GetCar(regNr);
            Customer customer = r.GetCustomerById(id);
            string   bookId   = r.AddBooking(car, customer, from, to);

            return(bookId);
        }
Esempio n. 2
0
 public void AddBooking(Car rentalCar, Customer renter, DateTime startTime, DateTime endTime)
 {
     Rentals.AddBooking(rentalCar, renter, startTime, endTime);
 }