예제 #1
0
 public Game GetGameById(int id)
 {
     var game = _dataAdapter.GetGameById(id.ToString());
     if (game == null)
     {
         throw new Exception("Game does not exist");
     }
     else 
     {
         return game; 
     }
 }