コード例 #1
0
 public int GetTotalFrequentRenterPoints()
 {
     return(Rentals.Sum(rental => rental.GetFrequentRenterPoints()));
 }
コード例 #2
0
 public double GetTotalAmount()
 {
     return(Rentals.Sum(rental => rental.GetCharge()));
 }