Exemple #1
0
 private static Payment ProcessPayment(string customerName, FilmType filmType, int rentDaysCount)
 {
     if (domainService.CanCustomerPayByBonuses(customerName, filmType, rentDaysCount))
     {
         return(rentService.CreateBonusesRentPayment(filmType, rentDaysCount));
     }
     else
     {
         domainService.GainBonusPoints(customerName, filmType);
         return(rentService.CreateEURRentPayment(filmType, rentDaysCount));
     }
 }