public MatchController(IMatchRepository matchRepository, ITeamRepository teamRepository, IPlayerOnMatchRepository playerOnMatchRepository) { this.matchRepository = matchRepository; this.teamRepository = teamRepository; this.playerOnMatchRepository = playerOnMatchRepository; }
public MatchController() { matchRepository = new MatchRepository(new FootballMatchOrganizerContext()); teamRepository = new TeamRepository(new FootballMatchOrganizerContext()); playerOnMatchRepository = new PlayerOnMatchRepository(new FootballMatchOrganizerContext()); }