Exemple #1
0
 public PoliticPartiesController(IPoliticPartyService politicPartyService, IElectionRepository electionRepository,
                                 IHostingEnvironment hostingEnvironment, IElectionService electionService)
 {
     this._politicPartyService = politicPartyService;
     this._electionRepository  = electionRepository;
     this._hostingEnvironment  = hostingEnvironment;
     this._electionService     = electionService;
 }
Exemple #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;
 }
Exemple #3
0
        //#endregion

        //#region Constructor
        public EnrolmentController(IUnitOfWork unitOfWork, IElectionService artService
                                   , IStudentService st, IUserService us, ISettingService set, ITermService tr,
                                   IPeresentedCoursesService pr)
        {
            _unitOfWork               = unitOfWork;
            _ElectionService          = artService;
            _StudentService           = st;
            _UserService              = us;
            _SettingService           = set;
            _TermService              = tr;
            _PeresentedCoursesService = pr;
        }
Exemple #4
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;
 }
 public ElectionsController(IElectionService service)
 {
     _service = service;
 }
 public ElectionRepository(ILogger <ElectionRepository> logger, IElectionService electionService)
 {
     this._logger         = logger;
     this.electionService = electionService;
 }
Exemple #7
0
 public CitizensController(ICitizenService citizenServices, IElectionService electionService)
 {
     _citizenServices = citizenServices;
     _electionService = electionService;
 }
 public ElectionController()
 {
     _electionService = new ElectionService();
 }
Exemple #9
0
 public ElectionController(IElectionService electionService)
 {
     _electionService = electionService;
 }
Exemple #10
0
 public PositionsController(IPositionService positionService, IElectionService electionService)
 {
     _positionService = positionService;
     _electionService = electionService;
 }
 public ElectionController(IElectionService electionService)
 {
     _electionService = electionService;
 }