Esempio n. 1
0
        public static Reservation getReservation(int resNum)
        {
            ReservationDB db  = new ReservationDB();
            DataSet       ds  = db.getReservationDB(resNum);
            Reservation   res = fillReservationModified(ds)[0];

            ReservedService rs = new ReservedService();

            res.petReservationList.ForEach(delegate(PetReservation pres) {
                List <ReservedService> ser = rs.listReservedService(pres.petResNumber);
                if (ser.Count != 0)
                {
                    pres.serviceList = rs.listReservedService(pres.petResNumber);
                }
            });
            return(res);
        }