Exemplo n.º 1
0
 /// <summary>
 /// Gets all teams of the game.
 /// </summary>
 public IEnumerable<Team> GetAll(Game game)
 {
     using (var teamRepository = new RepositoryFactory().CreateTeamRepository())
      {
     var teams = teamRepository.GetTeamsByGame(game.Id);
     return teams;
      }
 }