Пример #1
0
        public List <XElement> GetAllActiveGameRooms()
        {
            List <XElement> toRet = new List <XElement>();

            try
            {
                using (connectionsLinqDataContext db = new connectionsLinqDataContext())
                {
                    var temp = db.GetAllActiveGameRooms().ToList();
                    foreach (var v in temp)
                    {
                        toRet.Add(v.GameXML);
                    }
                    return(toRet);
                }
            }
            catch (Exception e)
            {
                return(null);
            }
        }