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);
 }
Example #2
0
 public void AddRentals(Rental rental)
 {
     rentals.Add(rental);
 }