예제 #1
0
        //internal bool DeleteBooking(ICustomer cus, string bookingID)
        //{
        //    return dbCon.DeleteBooking(bookingID);
        //}

        internal void CheckInCustomer(ICustomer cus)
        {
            dbCon.UpdateCustomer(cus);

            foreach (IBooking book in GetActiveBookings(cus.ID))
            {
                IRoom room = dbCon.GetRoom(book.RoomID);
                room.RStatus = RoomStatus.Occupied;
                dbCon.UpdateRoom(room);
            }
        }
예제 #2
0
 internal ICustomer UpdateCustomer(ICustomer cus)
 {
     return(dbCon.UpdateCustomer(cus));
 }