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