Exemplo n.º 1
0
 public XElement GetGameRoomById(int roomid)
 {
     try
     {
         using (connectionsLinqDataContext db = new connectionsLinqDataContext())
         {
             var temp = db.GetGameRoomById(roomid).ToList();
             if (temp.Capacity == 0)
             {
                 return(null);
             }
             var res = temp.First();
             return(res.GameXML);
         }
     }
     catch (Exception e)
     {
         return(null);
     }
 }