Пример #1
0
        public DiscountModel()
        {
            DBConnector                     DB = new DBConnector(new BenefitsDBEntities());
            DiscountTypeRepository          discountTypeRepository          = new DiscountTypeRepository(DB);
            DiscountConditionTypeRepository discountConditionTypeRepository = new DiscountConditionTypeRepository(DB);

            Populate(discountTypeRepository.GetAll(), discountConditionTypeRepository.GetAll());
        }
Пример #2
0
 public AdminController(EmployeeRepository employeeRepository,
                        DependentRepository dependentRepository,
                        BenefitSettingsRepository benefitSettingsRepository,
                        DiscountRepository discountRepository,
                        DiscountTypeRepository discountTypeRepository,
                        DiscountConditionTypeRepository discountConditionTypeRepository,
                        StateRepository stateRepository)
 {
     EmployeeRepository              = employeeRepository;
     DependentRepository             = dependentRepository;
     BenefitSettingsRepository       = benefitSettingsRepository;
     DiscountRepository              = discountRepository;
     DiscountTypeRepository          = discountTypeRepository;
     DiscountConditionTypeRepository = discountConditionTypeRepository;
     StateRepository = stateRepository;
 }