public List <BuildingsWithRooms> GetBuildingsWithRooms()
        {
            IEnumerable <building> buildings = GetAllBuildings();

            List <BuildingsWithRooms> bwrList = new List <BuildingsWithRooms>();

            foreach (building b in buildings)
            {
                IEnumerable <room> rooms = GetRoomsForBuilding(b);

                BuildingsWithRooms bwr = new BuildingsWithRooms(b, rooms);

                bwrList.Add(bwr);
            }

            return(bwrList);
        }
        public List<BuildingsWithRooms> GetBuildingsWithRooms()
        {
            IEnumerable<building> buildings = GetAllBuildings();

            List<BuildingsWithRooms> bwrList = new List<BuildingsWithRooms>();

            foreach (building b in buildings)
            {

                IEnumerable<room> rooms = GetRoomsForBuilding(b);

                BuildingsWithRooms bwr = new BuildingsWithRooms(b, rooms);

                bwrList.Add(bwr);

            }

            return bwrList;
        }