public WorkplaceManager(UserConnection uc)
 {
     _workplaceRepository = ClassFactory.Get <IWorkplaceRepository>(new ConstructorArgument("uc", uc));
     _sectionRepository   = ClassFactory.Get <ISectionRepository>("General", new ConstructorArgument("uc", uc));
     _resourceStorage     = uc.ResourceStorage;
     _currentUserId       = uc.CurrentUser.Id;
 }
Example #2
0
 public SectionService(ISectionRepository repository, ITopicRepository topicRepository, IMessageRepository messageRepository, IDbContextProvider provider) : base(repository, provider)
 {
     _sectionRepository = repository;
     _topicRepository   = topicRepository;
     _messageRepository = messageRepository;
     _provider          = provider;
 }
Example #3
0
        public UpdateViewModel()
        {
            UpdataOrg = new RelayCommand(UpdateOrganization);
            Clean     = new RelayCommand(Clear);
            SelectOrg = new RelayCommand(SelectForUpdate);
            DelOrg    = new RelayCommand(DeleteOrg);

            updateModel = new UpdateOrgModel();
            upsateRepo  = new UpdateRepository();

            _countryRepository = new CountryRepository();                            //создаем экземпляр класса CountryRepository, который унаследован от интрефейса ICountryRepository
            List <CountryModel> countries = _countryRepository.GetCountries();       // создаем список объектов с типом CountryModel при помощи метода обязательного (Интрерфес) методом GetCountries из репы
            var countryVM = CountryMapper.CountryModelToCountryViewModel(countries); // при помощи статического метода CountryModelToCountryViewModel из класса CountryMapper приводим тип из Модели во Вью модель, чтобы наша вью модель могла работать с данными

            _sectionRepository = new SectionRepository();
            List <SectionModel> sections = _sectionRepository.GetSections();
            var sectionVM = SectionMappers.SectionModelToSectionViewModel(sections);

            Countries = countryVM;
            Section   = sectionVM;

            Person = new UpdatePersViewModel(countryVM)
            {
            };

            Organization = new UpdateOrgViewModel(countryVM, sectionVM)
            {
                CreateDateOrg = new DateTime()
            };
        }
        public SearchWievModelOrg()
        {
            _searchRepository = new SearchRepository();

            _countryRepository = new CountryRepository();                        //создаем экземпляр класса CountryRepository, который унаследован от интрефейса ICountryRepository
            List <CountryModel> countries = _countryRepository.GetCountries();   // создаем список объектов с типом CountryModel при помощи метода обязательного (Интрерфес) методом GetCountries из репы

            Countries = CountryMapper.CountryModelToCountryViewModel(countries); // при помощи статического метода CountryModelToCountryViewModel из класса CountryMapper приводим тип из Модели во Вью модель, чтобы наша вью модель могла работать с данными

            _sectionRepository = new SectionRepository();
            List <SectionModel> sections = _sectionRepository.GetSections();

            Section = SectionMappers.SectionModelToSectionViewModel(sections);

            CreatedateOrgSTART = new DateTime(1980, 01, 01);
            CreatedateOrgFINAL = DateTime.Now;

            CheckDateOrgSTART = DateTime.Today;
            CheckDateOrgFINAL = DateTime.Today.AddDays(1);

            CheckDateOrg = DateTime.Now;

            RiscLevelLess = 83;
            RiscLevelMore = 0;

            /*  SearchCommand = new RelayCommand(Search, CanSearch);*/
        }
Example #5
0
 public SectionsServices(ISectionRepository sectionsRepository, IProfessorsServices professorsServices, IClassesServices classServices, IPeriodsServices periodsServices)
 {
     _sectionsRepository = sectionsRepository;
     _professorsServices = professorsServices;
     _classServices      = classServices;
     _periodsServices    = periodsServices;
 }
 public OrderController(IOrderRepository orderRepo,
     IUserAuthRepository userAuthRepo,
     ICustomerRepository customerRepo,
     IOrderLogRepository orderLogRepo,
     IOrderItemRepository orderItemRepo,
     IInboundPackRepository inboundRepo,
     IOutboundRepository outboundRepo,
     IOutboundItemRepository outbounditemRepo,
     ISectionRepository sectionRepo,
     IRMARepository rmaRepo,
     IRMALogRepository rmalogRepo,
     IRMAItemRepository rmaitemRepo
     )
 {
     _orderRepo = orderRepo;
     _userAuthRepo = userAuthRepo;
     _customerRepo = customerRepo;
     _orderLogRepo = orderLogRepo;
     _orderItemRepo = orderItemRepo;
     _inboundRepo = inboundRepo;
     _outboundRepo = outboundRepo;
     _outbounditemRepo = outbounditemRepo;
     _sectionRepo = sectionRepo;
     _rmaRepo = rmaRepo;
     _rmalogRepo = rmalogRepo;
     _rmaitemRepo = rmaitemRepo;
 }
Example #7
0
        public SearchController(IArticleRepository articleRepository, IAnnouncementRepository announcementRepository,
                                ISubsectionRepository subsectionRepository, ISectionRepository sectionRepository, ICategoryRepository categoryRepository, IRealtyRepository realtyRepository,
                                IRealtyCategoryRepository realtyCategoryRepository, IRealtySectionRepository realtySectionRepository, IProductRepository productRepository)
        {
            _articleRepository         = articleRepository;
            _articleRepository.Context = rc;

            _announcementRepository         = announcementRepository;
            _announcementRepository.Context = rc;

            _subsectionRepository         = subsectionRepository;
            _subsectionRepository.Context = rc;

            _sectionRepository         = sectionRepository;
            _sectionRepository.Context = rc;

            _categoryRepository         = categoryRepository;
            _categoryRepository.Context = rc;

            _realtyRepository         = realtyRepository;
            _realtyRepository.Context = rc;

            _realtyCategoryRepository         = realtyCategoryRepository;
            _realtyCategoryRepository.Context = rc;

            _realtySectionRepository         = realtySectionRepository;
            _realtySectionRepository.Context = rc;

            _productRepository         = productRepository;
            _productRepository.Context = rc;
        }
Example #8
0
 public SectionManager(
     ISectionRepository sectionRepository,
     IQuestionRepository questionRepository)
 {
     _sectionRepository  = sectionRepository;
     _questionRepository = questionRepository;
 }
 public PhysicalContractCommandsHandler(
     ILogger <PhysicalContractCommandsHandler> logger,
     IUnitOfWork unitOfWork,
     ITradeRepository tradeRepository,
     ISectionRepository sectionRepository,
     ICostRepository costRepository,
     IIdentityService identityService,
     IFreezeRepository freezeRepository,
     ISystemDateTimeService systemDateTimeService,
     IMapper mapper,
     IAuthorizationService authorizationService,
     IProcessMessageService processMessageService,
     IMasterDataService masterDataService,
     IUserService userService,
     ISectionQueries sectionQueries)
 {
     _unitOfWork            = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _tradeRepository       = tradeRepository ?? throw new ArgumentNullException(nameof(tradeRepository));
     _sectionRepository     = sectionRepository ?? throw new ArgumentNullException(nameof(sectionRepository));
     _costRepository        = costRepository ?? throw new ArgumentNullException(nameof(costRepository));
     _logger                = logger ?? throw new ArgumentNullException(nameof(logger));
     _mapper                = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _identityService       = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _systemDateTimeService = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _authorizationService  = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _freezeRepository      = freezeRepository ?? throw new ArgumentNullException(nameof(freezeRepository));
     _processMessageService = processMessageService ?? throw new ArgumentNullException(nameof(processMessageService));
     _masterDataService     = masterDataService ?? throw new ArgumentNullException(nameof(masterDataService));
     _userService           = userService ?? throw new ArgumentNullException(nameof(userService));
     _sectionQueries        = sectionQueries ?? throw new ArgumentNullException(nameof(sectionQueries));
 }
Example #10
0
        public ShoppingListsController(
            IItemShoppingListLinkRepository itemListLinkRepository,
            IShoppingListRepository shoppingListRepository,
            IShoppingUserRepository shoppingUserRepository,
            IItemEntityRepository itemRepository,
            IRepository <StoreEntity> storeRepository,
            IRepository <AddressEntity> addressRepository,
            IItemStoreLinkRepository itemStoreLinkRepository,
            IRepository <StoreMapEntity> storeMapRepository,
            IRepository <DepartmentEntity> departmentRepository,
            ILowerDepartmentRepository lowerDepartmentRepository,
            IAisleRepository aisleRepository,
            ISectionRepository sectionRepository,
            IShelfRepository shelfRepository,
            IShelfSlotsRepository shelfSlotsRepository,
            IUrlHelper urlHelper)
        {
            _itemListLinkRepository  = itemListLinkRepository;
            _storeRepository         = storeRepository;
            _addressRepository       = addressRepository;
            _shoppingListRepository  = shoppingListRepository;
            _shoppingUserRepository  = shoppingUserRepository;
            _itemRepository          = itemRepository;
            _itemStoreLinkRepository = itemStoreLinkRepository;
            _storeMapRepository      = storeMapRepository;
            _urlHelper = urlHelper;

            _departmentRepository      = departmentRepository;
            _lowerDepartmentRepository = lowerDepartmentRepository;
            _aisleRepository           = aisleRepository;
            _sectionRepository         = sectionRepository;
            _shelfRepository           = shelfRepository;
            _shelfSlotsRepository      = shelfSlotsRepository;
        }
 public ProjectHourService(IProjectHourRepository projecthourRepository, IStudentRepository studentRepository, ISectionRepository sectionRepository, IProjectRepository projectRepository)
 {
     _projecthourRepository = projecthourRepository;
     _studentRepository     = studentRepository;
     _sectionRepository     = sectionRepository;
     _projectRepository     = projectRepository;
 }
Example #12
0
 public GetSectionsCommand(
     [FromServices] ISectionRepository sectionRepository,
     [FromServices] IMapper autoMapper)
 {
     this.sectionRepository = sectionRepository;
     this.autoMapper        = autoMapper;
 }
Example #13
0
        public SectionService(IUnitOfWork unitOfWork, ISectionRepository sectionRepository)
        {
            this._unitOfWork        = unitOfWork;
            this._sectionRepository = sectionRepository;

            this._sectionRepository.UnitOfWork = unitOfWork;
        }
Example #14
0
 public CmsController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IAuthorizationService authorizationService,
     ILoggerFactory loggerFactory,
     ISiteRepository siteRepository,
     ISitePageRepository sitePageRepository,
     ISectionRepository sectionRepository,
     IArticleRepository articleRepository,
     IBrandingRepository brandingRepository,
     ICarouselRepository carouselRepository,
     ICarouselSlideRepository carouselSlideRepository,
     IMenuRepository menuRepository,
     IMenuItemRepository menuItemRepository,
     Site site
     )
 {
     _userManager          = userManager;
     _signInManager        = signInManager;
     _authorizationService = authorizationService;
     _logger                      = loggerFactory.CreateLogger <CmsController>();
     this.siteRepository          = siteRepository;
     this.sitePageRepository      = sitePageRepository;
     this.sectionRepository       = sectionRepository;
     this.articleRepository       = articleRepository;
     this.brandingRepository      = brandingRepository;
     this.carouselRepository      = carouselRepository;
     this.carouselSlideRepository = carouselSlideRepository;
     this.menuRepository          = menuRepository;
     this.menuItemRepository      = menuItemRepository;
     this.site                    = site;
 }
Example #15
0
 public HomeController(IAnnoncesRepository repository)
 {
     annoncesRepository = repository;
     sectionRepository  = new SectionRepository();
     communeRepository  = new CommuneRepository();
     categoryRepository = new CategoryRepository();
 }
 public MesAnnoncesController(IAnnoncesRepository repository)
 {
     annoncesRepository = repository;
     secRepository      = new SectionRepository();
     catRepository      = new CategoryRepository();
     deviseRepository   = new DeviseRepository();
     condRepository     = new ItemConditionRepository();
 }
 public SectionController(ISectionRepository sectionRepo,
                          IStoreRepository storeRepo,
                          IBrandRepository brandRepo)
 {
     _sectionRepo = sectionRepo;
     _brandRepo   = brandRepo;
     _storeRepo   = storeRepo;
 }
 public SectionController(ISectionRepository sectionRepo,
     IStoreRepository storeRepo,
     IBrandRepository brandRepo)
 {
     _sectionRepo = sectionRepo;
     _brandRepo = brandRepo;
     _storeRepo = storeRepo;
 }
Example #19
0
 public SubmissionService(ISectionRepository pSectionRepository, ISubmissionRepository pSubmissionRepository, ISalonYearRepository pSalonYearRepository, IImageService pImageService, IDbTransaction pDbTransaction)
 {
     this._sectionRepository    = pSectionRepository;
     this._submissionRepository = pSubmissionRepository;
     this._salonYearRepository  = pSalonYearRepository;
     this._imageService         = pImageService;
     this._dbTransaction        = pDbTransaction;
 }
Example #20
0
 public BookServices(IBookRepository bookRepository, ISectionRepository sectionRepository,
                     IUserBookRepository userBookRepository)
     : base(bookRepository)
 {
     _userBookRepository = userBookRepository;
     _sectionRepository  = sectionRepository;
     _bookDb             = bookRepository;
 }
Example #21
0
 public SectionsController(ISectionRepository sectionRepository,
                           ICourseRepository courseRepository,
                           ITranslator translator)
 {
     _sectionRepository = sectionRepository;
     _courseRepository  = courseRepository;
     _translator        = translator;
 }
 public ShippingController(IShippingSaleRepository shippingOrderRepository, ISaleRepository saleOrderRepository, IOrderRepository orderRepository, IShipViaRepository shipViaRepository, ISectionRepository sectionRepository)
 {
     _shippingOrderRepository = shippingOrderRepository;
     _saleOrderRepository     = saleOrderRepository;
     _orderRepository         = orderRepository;
     _shipViaRepository       = shipViaRepository;
     _sectionRepository       = sectionRepository;
 }
Example #23
0
 public AccountController(IUserRepository repository, IProfileReposiory profileReposiory, ISectionRepository sectionRepository, ISectionModeratorsRepository sectionModeratorsRepository, IRoleRepository roleRepository)
 {
     this._repository                 = repository;
     this.profileReposiory            = profileReposiory;
     this.sectionRepository           = sectionRepository;
     this.sectionModeratorsRepository = sectionModeratorsRepository;
     this.roleRepository              = roleRepository;
 }
Example #24
0
 public HomeController(JotexDbContext context,
                       IMapper mapper,
                       ISectionRepository sectionRepository)
 {
     _mapper            = mapper;
     _context           = context;
     _sectionRepository = sectionRepository;
 }
Example #25
0
        public SectionController(ISectionRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.To <long>();
            this._UserId   = view.UserId.To <int>();
            this._OfficeId = view.OfficeId.To <int>();
            this._Catalog  = catalog;

            this.SectionRepository = repository;
        }
Example #26
0
 public ProjectFinalReport(IProjectRepository projectRepository, ISectionRepository sectionRepository, IStudentRepository studentRepository, ITextDocumentServices textDocumentServices, IDownloadbleFile downloadbleFile, ISectionProjectRepository sectionProjectRepository)
 {
     _projectRepository        = projectRepository;
     _sectionRepository        = sectionRepository;
     _studentRepository        = studentRepository;
     _textDoucmentServices     = textDocumentServices;
     _downloadbleFile          = downloadbleFile;
     _sectionProjectRepository = sectionProjectRepository;
 }
        public NewOrganizationViewModel()
        {
            _newOrgrepo = new NewOrganizationRepository();

            _countryRepository = new CountryRepository();                            //создаем экземпляр класса CountryRepository, который унаследован от интрефейса ICountryRepository
            List <CountryModel> countries = _countryRepository.GetCountries();       // создаем список объектов с типом CountryModel при помощи метода обязательного (Интрерфес) методом GetCountries из репы
            var countryVM = CountryMapper.CountryModelToCountryViewModel(countries); // при помощи статического метода CountryModelToCountryViewModel из класса CountryMapper приводим тип из Модели во Вью модель, чтобы наша вью модель могла работать с данными

            _sectionRepository = new SectionRepository();
            List <SectionModel> sections = _sectionRepository.GetSections();
            var sectionVM = SectionMappers.SectionModelToSectionViewModel(sections);

            _riskListRepository = new RiskRepository();

            var risks = _riskListRepository.GetRisks();

            //ValueChanged - обработчик событий. В калькуляторе у нас есть событие, которое вызывается при смене значения в калькуляторе(при добавлении и удаоении значений)
            /// мы подписываемся на изменение ValueChanged
            RiskCalculator.ValueChanged += RiskCalculatorValueChanged;

            Person1 = new PersonViewModel(countryVM)
            {
                PrevLiquidated  = new NegativeRiskCheckBoxViewModel(risks.PrevLiquidated),
                PrevBankruptcy  = new NegativeRiskCheckBoxViewModel(risks.PrevBankruptcy),
                PrevExecuteProc = new NegativeRiskCheckBoxViewModel(risks.PrevExecuteProc),
                PrevStateDebt   = new NegativeRiskCheckBoxViewModel(risks.PrevStateDebt),
                PrevTaxDebt     = new NegativeRiskCheckBoxViewModel(risks.PrevTaxDebt),
                NegativDataPers = new NegativeRiskCheckBoxViewModel(risks.NegativData)
            };

            Organization = new OrganizationViewModel(countryVM, sectionVM)
            {
                BrokerClient     = new PositiveRiskCheckBoxViewModel(risks.BrokerClient),
                PrevBrokerClient = new PositiveRiskCheckBoxViewModel(risks.PrevBrokerClient),
                Manufacturer     = new PositiveRiskCheckBoxViewModel(risks.Manufacturer),
                Reputation       = new PositiveRiskCheckBoxViewModel(risks.Reputation),
                OwnershipOrg     = new PositiveRiskCheckBoxViewModel(risks.OwnershipOrg),

                TaxDebt = new NegativeRiskCheckBoxViewModel(risks.TaxDebt),
                DebtsEnforcementDocuments = new NegativeRiskCheckBoxViewModel(risks.DebtsEnforcementDocuments),
                FalseBusiness             = new NegativeRiskCheckBoxViewModel(risks.FalseBusiness),
                SpecialRisc              = new NegativeRiskCheckBoxViewModel(risks.SpecialRisc),
                ExecuteProc              = new NegativeRiskCheckBoxViewModel(risks.ExecuteProc),
                BankruptcyProc           = new NegativeRiskCheckBoxViewModel(risks.BankruptcyProc),
                LiquidationProc          = new NegativeRiskCheckBoxViewModel(risks.LiquidationProc),
                NegativData              = new NegativeRiskCheckBoxViewModel(risks.NegativData),
                ExchengeTradingDisorders = new NegativeRiskCheckBoxViewModel(risks.ExchengeTradingDisorders),
            };

            SaveCommand       = new RelayCommand(Save, CanSave);
            ClearCommand      = new RelayCommand(Clear);
            Risk              = RiskCalculator.Value;
            AutoFill          = new RelayCommand(FillOracleDataOrgPers);
            AutoFillViewModel = new AutoFillViewModel();

            Countries = countryVM;
        }
Example #28
0
        public SectionController(ISectionRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.SectionRepository = repository;
        }
Example #29
0
 public TaskManagerDomain(
     IBoardRepository boardRepository,
     ISectionRepository sectionRepository,
     ITaskRepository taskRepository)
 {
     this.boardRepository   = boardRepository;
     this.sectionRepository = sectionRepository;
     this.taskRepository    = taskRepository;
 }
Example #30
0
 public AccountService(IAccountRepository accountRepository, IOrgInfoRepository orgInfoRepository, IRoleUserRepository roleUserRepository, ISectionRepository sectionRepository, IStoreRepository storeRepository)
     : base(accountRepository)
 {
     _accountRepository  = accountRepository;
     _orgInfoRepository  = orgInfoRepository;
     _roleUserRepository = roleUserRepository;
     _sectionRepository  = sectionRepository;
     _storeRepository    = storeRepository;
 }
        public AnnouncementController(IAnnouncementRepository repository,
                                      ISectionRepository sectionRepository,
                                      ICategoryRepository categoryRepository,
                                      IAnnouncementImageRepository announcementImageRepository,
                                      ISubsectionRepository subsectionRepository,
                                      ICityRepository cityRepository,
                                      ICurrencyRepository currencyRepository,
                                      IConfigRepository configRepository,
                                      IAnnouncementBookmarkRepository bookmarkRepository,
                                      IAnnouncementsPremiumsRefRepository announcementsPremiumsRefRepository,
                                      IProfileRepository profileRepository,
                                      IComputerRepository computerRepository,
                                      IComputerAnnouncementRefRepository computerAnnouncementRefRepository)
        {
            _repository         = repository;
            _repository.Context = rc;

            _sectionRepository         = sectionRepository;
            _sectionRepository.Context = rc;

            _categoryRepository         = categoryRepository;
            _categoryRepository.Context = rc;

            _announcementImageRepository         = announcementImageRepository;
            _announcementImageRepository.Context = rc;

            _subsectionRepository         = subsectionRepository;
            _subsectionRepository.Context = rc;

            _cityRepository         = cityRepository;
            _cityRepository.Context = rc;

            _currencyRepository         = currencyRepository;
            _currencyRepository.Context = rc;

            _configRepository         = configRepository;
            _configRepository.Context = rc;

            _bookmarkRepository         = bookmarkRepository;
            _bookmarkRepository.Context = rc;

            _announcementsPremiumsRefRepository         = announcementsPremiumsRefRepository;
            _announcementsPremiumsRefRepository.Context = rc;

            _profileRepository         = profileRepository;
            _profileRepository.Context = rc;

            _computerRepository         = computerRepository;
            _computerRepository.Context = rc;

            _computerAnnouncementRefRepository         = computerAnnouncementRefRepository;
            _computerAnnouncementRefRepository.Context = rc;

            ViewBag.Slogan = ProjectConfiguration.Get.AnnouncementConfig.Slogan;
            ViewBag.SelectedSiteCategory = CategorySearch.Announcement;
        }
Example #32
0
 public ExamManager(
     IExamRepository examRepository,
     ISectionRepository sectionRepository,
     IQuestionRepository questionRepository
     )
 {
     _examRepository     = examRepository;
     _sectionRepository  = sectionRepository;
     _questionRepository = questionRepository;
 }
Example #33
0
        public SectionService(IUnitOfWork unitOfWork, ISectionRepository SectionRepository)
        {
            this._sectionRepository = SectionRepository;
            this._unitOfWork        = unitOfWork;

            this._sectionRepository.UnitOfWork = unitOfWork;

            //测试代码
            //throw new Exception("");
        }
Example #34
0
        public SectionController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.SectionRepository = new Extems.Academic.DataAccess.Section
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
 public AttendanceController(IGenericRepository genericRepository,
     ISectionRepository sectionRepository,
     SectionToTakeAttendanceModelMapper sectionToTakeAttendanceModelMapper,
     TakeAttendanceModelToStudentSectionAttendanceEventListMapper takeAttendanceModelToStudentSectionAttendanceEventListMapper, 
     IAttendanceService attendanceService, 
     IStudentRepository studentRepository)
 {
     _genericRepository = genericRepository;
     _sectionRepository = sectionRepository;
     _sectionToTakeAttendanceModelMapper = sectionToTakeAttendanceModelMapper;
     _takeAttendanceModelToStudentSectionAttendanceEventListMapper = takeAttendanceModelToStudentSectionAttendanceEventListMapper;
     _attendanceService = attendanceService;
     _studentRepository = studentRepository;
 }
 private void SetUpRepositories()
 {
     ContractorRepository = kernel.Get<IContractorRepository>();
     DeviceRepository = kernel.Get<IDeviceRepository>();
     FixedAssetRepository = kernel.Get<IFixedAssetRepository>();
     KindRepository = kernel.Get<IKindRepository>();
     LicenceRepository = kernel.Get<ILicenceRepository>();
     PeripheralDeviceRepository = kernel.Get<IPeripheralDeviceRepository>();
     PersonRepository = kernel.Get<IPersonRepository>();
     SectionRepository = kernel.Get<ISectionRepository>();
     SubgroupRepository = kernel.Get<ISubgroupRepository>();
     MembershipRoleRepository = kernel.Get<IMembershipRoleRepository>();
     MembershipUserRepository = kernel.Get<IMembershipUserRepository>();
 }
Example #37
0
 public SectionController(IGenericRepository genericRepository, 
     IMapper<Section, IndexModel> sectionToIndexModelMapper, 
     IMapper<ClassPeriod, ClassPeriodListItemModel> classPeriodToClassPeriodNameModelMapper, 
     IMapper<Location, LocationListItemModel> locationToClassRoomModelMapper, 
     IMapper<CreateModel, Section> createModelToSectionMapper, 
     IMapper<CreateModel, CourseOffering> createModelToCourseOfferingMapper, 
     IMapper<Session, SessionJsonModel> sessionToSessionJsonModelMapper, 
     IMapper<Course, CourseJsonModel> courseToCourseJsonModelMapper, 
     ISessionRepository sessionRepository, IMapper<Session, SessionWithSectionsModel> sessionToSessionWithSectionsModelMapper, 
     ISectionRepository sectionRepository)
 {
     _genericRepository = genericRepository;
     _createModelToSectionMapper = createModelToSectionMapper;
     _createModelToCourseOfferingMapper = createModelToCourseOfferingMapper;
     _sessionToSessionJsonModelMapper = sessionToSessionJsonModelMapper;
     _courseToCourseJsonModelMapper = courseToCourseJsonModelMapper;
     _sessionRepository = sessionRepository;
     _sessionToSessionWithSectionsModelMapper = sessionToSessionWithSectionsModelMapper;
     _sectionRepository = sectionRepository;
     _sectionToIndexModelMapper = sectionToIndexModelMapper;
     _classPeriodToClassPeriodNameModelMapper = classPeriodToClassPeriodNameModelMapper;
     _locationToClassRoomModelMapper = locationToClassRoomModelMapper;
 }
Example #38
0
 public SectionService(ISectionRepository SectionRepository)
 {
     this._SectionRepository = SectionRepository;
 }
 public SectionController(ISectionRepository repo)
 {
     repository = repo;
 }
Example #40
0
 public SectionService(IUnitOfWork uow, ISectionRepository repository)
 {
     this.uow = uow;
     this.sectionRepository = repository;
 }
Example #41
0
 public ArticleService(IUnitOfWork unitOfWork,IArticleRepository articleRepository,ISectionRepository sectionRepository)
 {
     _unitOfWork = unitOfWork;
     _articleRepository = articleRepository;
     _sectionRepository = sectionRepository;
 }