Exemplo n.º 1
0
 public CascadingDeleteService(ILeagueRepository leagueRepository, ISeasonRepository seasonRepository, IMatchRepository matchRepository, IMatchdayRepository matchdayRepository, ITeamRepository teamRepository)
 {
     this.leagueRepository   = leagueRepository;
     this.seasonRepository   = seasonRepository;
     this.matchRepository    = matchRepository;
     this.matchdayRepository = matchdayRepository;
     this.teamRepository     = teamRepository;
 }
 public SeasonsController(UserManager <ApplicationUser> userManager,
                          ILeagueRepository leagueRepository,
                          ISeasonRepository seasonRepository,
                          ITeamRepository teamRepository,
                          IMatchdayRepository matchdayRepository,
                          IMatchRepository matchRepository,
                          IScheduleService scheduleService,
                          IStandingsEvaluatorService standingsEvaluatorService,
                          ICascadingDeleteService cascadingDeleteService) : base(userManager)
 {
     this.leagueRepository          = leagueRepository;
     this.seasonRepository          = seasonRepository;
     this.teamRepository            = teamRepository;
     this.matchdayRepository        = matchdayRepository;
     this.matchRepository           = matchRepository;
     this.scheduleService           = scheduleService;
     this.standingsEvaluatorService = standingsEvaluatorService;
     this.cascadingDeleteService    = cascadingDeleteService;
 }