Exemple #1
0
        public FixedOrByCountryStateZipController(FixedOrByCountryStateZipTaxSettings countryStateZipSettings,
                                                  ICountryService countryService,
                                                  ICountryStateZipService taxRateService,
                                                  ILocalizationService localizationService,
                                                  IPermissionService permissionService,
                                                  ISettingService settingService,
                                                  IStateProvinceService stateProvinceService,
                                                  IStoreService storeService,
                                                  ITaxCategoryService taxCategoryService,
                                                  IGenericAttributeService genericAttributeService,
                                                  IWorkContext workContext)

        {
            _countryStateZipSettings = countryStateZipSettings;
            _countryService          = countryService;
            _taxRateService          = taxRateService;
            _permissionService       = permissionService;
            _localizationService     = localizationService;
            _settingService          = settingService;
            _stateProvinceService    = stateProvinceService;
            _storeService            = storeService;
            _taxCategoryService      = taxCategoryService;
            _genericAttributeService = genericAttributeService;
            _workContext             = workContext;
        }
        //private readonly ICacheManager _cacheManager;

        #endregion

        #region Ctor
        public CountryStateZipTaxRateService(IRepository <TaxRate> taxRateRepository, /*IUnitOfWork unitOfWork,*/ IStoreContext storeContext, ISettingService settingService)
        {
            //this._unitOfWork = unitOfWork;
            this._storeContext = storeContext;
            //this._cacheManager = cacheManager;
            this._taxRateRepository       = taxRateRepository;
            this._settingService          = settingService;
            this._countryStateZipSettings = _settingService.LoadSetting <FixedOrByCountryStateZipTaxSettings>();
        }
 public FixedOrByCountryStateZipController(FixedOrByCountryStateZipTaxSettings countryStateZipSettings,
                                           ICountryService countryService,
                                           ICountryStateZipService taxRateService,
                                           IPermissionService permissionService,
                                           ISettingService settingService,
                                           IStateProvinceService stateProvinceService,
                                           IStoreService storeService,
                                           ITaxCategoryService taxCategoryService)
 {
     _countryStateZipSettings = countryStateZipSettings;
     _countryService          = countryService;
     _taxRateService          = taxRateService;
     _permissionService       = permissionService;
     _settingService          = settingService;
     _stateProvinceService    = stateProvinceService;
     _storeService            = storeService;
     _taxCategoryService      = taxCategoryService;
 }