Exemple #1
0
        public IndexModel(
            INotificationRepository notificationRepository,
            ISearchService searchService,
            IAuthorizationService authorizationService,
            IReferenceDataRepository referenceDataRepository,
            ILegacySearchService legacySearchService,
            IUserService userService,
            IUserHelper userHelper)
        {
            _authorizationService    = authorizationService;
            _searchService           = searchService;
            _notificationRepository  = notificationRepository;
            _legacySearchService     = legacySearchService;
            _referenceDataRepository = referenceDataRepository;
            _userService             = userService;
            _userHelper = userHelper;

            ValidationService = new ValidationService(this);

            Sexes      = referenceDataRepository.GetAllSexesAsync().Result.ToList();
            TbServices = new SelectList(
                referenceDataRepository.GetAllActiveTbServicesAsync().Result,
                nameof(TBService.Code),
                nameof(TBService.Name));
            Countries = new SelectList(
                referenceDataRepository.GetAllCountriesAsync().Result,
                nameof(Country.CountryId),
                nameof(Country.Name));
        }
Exemple #2
0
 public Index(ILegacySearchService legacySearchService,
              INotificationImportService notificationImportService,
              INotificationRepository notificationRepository)
 {
     _legacySearchService       = legacySearchService;
     _notificationImportService = notificationImportService;
     _notificationRepository    = notificationRepository;
 }
Exemple #3
0
 public Index(ILegacySearchService legacySearchService,
              INotificationImportService notificationImportService,
              INotificationImportRepository notificationImportRepository,
              INotificationRepository notificationRepository,
              IUserHelper userHelper,
              IAuthorizationService authorizationService)
 {
     _legacySearchService          = legacySearchService;
     _notificationImportService    = notificationImportService;
     _notificationImportRepository = notificationImportRepository;
     _notificationRepository       = notificationRepository;
     _userHelper           = userHelper;
     _authorizationService = authorizationService;
 }