コード例 #1
0
 public PoliticPartiesController(IPoliticPartyService politicPartyService, IElectionRepository electionRepository,
                                 IHostingEnvironment hostingEnvironment, IElectionService electionService)
 {
     this._politicPartyService = politicPartyService;
     this._electionRepository  = electionRepository;
     this._hostingEnvironment  = hostingEnvironment;
     this._electionService     = electionService;
 }
コード例 #2
0
 public CandidatesController(ICandidateService candidateService, IPoliticPartyService politicPartyService, IPositionService positionService, IElectionService electionService, IHostingEnvironment hostingEnvironment)
 {
     //_context = context;
     this._candidateService    = candidateService;
     this._politicPartyService = politicPartyService;
     this._positionService     = positionService;
     this._electionService     = electionService;
     this._hostingEnvironment  = hostingEnvironment;
 }
コード例 #3
0
 public ElectionsController(IElectionService electionService, IPositionService positionService, ICandidateService candidateService,
                            IPoliticPartyService politicPartyService, ICitizenService citizenService, IMapper mapper,
                            IResultRepository resultRepository, IElectionCitizenRepository electionCitizenRepository,
                            Sistema_de_votacion.Mail.IEmailSender emailSender)
 {
     _electionService     = electionService;
     _positionService     = positionService;
     _candidateService    = candidateService;
     _politicPartyService = politicPartyService;
     _citizenService      = citizenService;
     _mapper = mapper;
     this._resultRepository          = resultRepository;
     this._electionCitizenRepository = electionCitizenRepository;
     this._emailSender = emailSender;
 }