Exemplo n.º 1
0
 public bool UpdateGameRoom(int roomId, int gameId, XElement newXML, bool newIsActive, string newRep)
 {
     try
     {
         using (connectionsLinqDataContext db = new connectionsLinqDataContext())
         {
             string oldRep = db.GetGameRoomReplyById(roomId).First().Replay;
             db.UpdateGameRoom(roomId, gameId, newXML, newIsActive, string.Concat(oldRep, newRep));
             return(true);
         }
     }
     catch (Exception e)
     {
         return(false);
     }
 }