public List <XElement> GetGameRoomsByMinPlayers(int min) { List <XElement> toRet = new List <XElement>(); try { using (connectionsLinqDataContext db = new connectionsLinqDataContext()) { var temp = db.GetGameRoomsByMinPlayers(min).ToList(); foreach (var v in temp) { toRet.Add(v.GameXML); } return(toRet); } } catch (Exception e) { return(null); } }