Exemplo n.º 1
0
        public List <RoomInfo> GetRoomsAtLocation(int locationId)
        {
            List <DatabaseRoom> dbRoomList = _dbQueryService.GetRoomsAtLocation(locationId);
            List <RoomInfo>     roomList   = new List <RoomInfo>();

            foreach (var dbRoom in dbRoomList)
            {
                roomList.Add(new RoomInfo(dbRoom));
            }
            return(roomList);
        }