コード例 #1
0
        public string getCurrentRoom()
        {
            string name = SqlProcessor.selectRestaurantRoom();

            if (!name.Equals("none") && !name.Equals(""))
            {
                Room        room  = SqlProcessor.selectRoom(name);
                List <Room> rooms = new List <Room>();
                if (!room.Name.Equals(""))
                {
                    rooms.Add(room);
                }
                return(XmlProcessor.xmlRoomsBuilder(rooms));
            }
            return("");
        }
コード例 #2
0
 public string getRooms()
 {
     return(XmlProcessor.xmlRoomsBuilder(SqlProcessor.selectAllRooms()));
 }