示例#1
0
 public IEnumerable<Player> GetAll(Game game)
 {
     using (var playerRepository = new RepositoryFactory().CreatePlayerRepository())
      {
     var players = playerRepository.GetPlayersByGame(game);
     return players;
      }
 }