Beispiel #1
0
        public decimal GetReservationPriceForDay(PriceCalculator priceCalculator)
        {
            var guest = ReservationRooms.SelectMany(x => x.Guests).ToList();

            guest.ForEach(x => x.SetPriceForStay(priceCalculator.CalculateGuestPrice(x)));

            return(priceCalculator.CalculateReservationPrice(this));
        }
Beispiel #2
0
 public List <Guest> GetGuests() => ReservationRooms.SelectMany(x => x.Guests).ToList();