Exemplo n.º 1
0
        internal IRoom GetRoomViaNum(string roomNum)
        {
            var list = dbCon.GetRooms();

            foreach (IRoom room in list)
            {
                if (room.RoomNum == roomNum && room.RStatus != RoomStatus.NA)
                {
                    return(room);
                }
            }
            return(null);
        }