Пример #1
0
 public int GetGameModeValByName(string v)
 {
     try
     {
         using (connectionsLinqDataContext db = new connectionsLinqDataContext())
         {
             var temp = db.GetGameModeValByName(v);
             return(temp.First().Game_mode_value);
         }
     }
     catch (Exception e)
     {
         return(-1);
     }
 }