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 Customer GetCustomerById(int id)
        {
            Customer customer = Rentals.GetCustomerById(id);

            return(customer);
        }