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(""); }
public string getRooms() { return(XmlProcessor.xmlRoomsBuilder(SqlProcessor.selectAllRooms())); }