예제 #1
0
 public Transfer(Hotel hotel)
 {
     _hotel = hotel;
 }
예제 #2
0
 /// <summary>
 /// Сортируем по имени клиента
 /// </summary>
 /// <param name="hotel"></param>
 /// <returns></returns>
 public List <AccordancePayChannel> OrderByClient(Hotel hotel)
 {
     return((this).OrderBy(item => string.Concat(GetClient(hotel, item).Surname,
                                                 GetClient(hotel, item).Name,
                                                 GetClient(hotel, item).LastName)).ToList());
 }
예제 #3
0
 private static Client GetClient(Hotel hotel, AccordancePayChannel item)
 {
     return(hotel.GetClient(hotel.GetReservation(item.IdReservation).IdClient));
 }
예제 #4
0
 public Reservation(Hotel hotel)
 {
     _hotel = hotel;
 }