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