private static void AddRental(Customer customer, string moiveName, int priceCode, int daysRented) { var movie = new Movie(moiveName, priceCode); var rental = new Rental(movie, daysRented); customer.AddRentals(rental); }
public void AddRentals(Rental rental) { rentals.Add(rental); }