public Transfer(Hotel hotel) { _hotel = hotel; }
/// <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()); }
private static Client GetClient(Hotel hotel, AccordancePayChannel item) { return(hotel.GetClient(hotel.GetReservation(item.IdReservation).IdClient)); }
public Reservation(Hotel hotel) { _hotel = hotel; }