public CountryRegionService(ICountryRegionService Provider = null)
 {
     if (Provider != null)
     {
         this.Provider = Provider;
     }
     else
     {
         var defaultApiSettings = new DefaultApiSettings();
         if(defaultApiSettings.IsEnterprise) this.Provider = new SqlCountryRegionProvider(defaultApiSettings);
         else this.Provider = new ODataCountryRegionProvider(defaultApiSettings);
     }
 }
示例#2
0
文件: RM.cs 项目: wjrogers/DryIoc
 public AddressValidator(
     IAddressRepository arg0,
     ICountryRegionService arg1,
     IAccountRepository arg2,
     ICompanyRepository arg3,
     IOrganizationPermissionService arg4
     ) : base()
 {
     field0 = arg0;
     field1 = arg1;
     field2 = arg2;
     field3 = arg3;
     field4 = arg4;
 }
示例#3
0
 public TicketController(
     IContinentService continentService,
     ICountryRegionService countryRegionService,
     IStateProvinceService stateProvinceService,
     IAreaService areaService,
     ITourService tourService
     )
 {
     _continentService     = continentService;
     _countryRegionService = countryRegionService;
     _stateProvinceService = stateProvinceService;
     _areaService          = areaService;
     _tourService          = tourService;
 }
示例#4
0
 public CountryRegionController(
     ApiSettings settings,
     ILogger <CountryRegionController> logger,
     ITransactionCoordinator transactionCoordinator,
     ICountryRegionService countryRegionService,
     IApiCountryRegionModelMapper countryRegionModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            countryRegionService,
            countryRegionModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
 public CountryRegionService(ICountryRegionService Provider = null)
 {
     if (Provider != null)
     {
         this.Provider = Provider;
     }
     else
     {
         var defaultApiSettings = new DefaultApiSettings();
         if (defaultApiSettings.IsEnterprise)
         {
             this.Provider = new SqlCountryRegionProvider(defaultApiSettings);
         }
         else
         {
             this.Provider = new ODataCountryRegionProvider(defaultApiSettings);
         }
     }
 }
 public CountryRegionsController(IErrorService errorService
                                 , ICountryRegionService countryRegionService) : base(errorService)
 {
     _countryRegionService = countryRegionService;
 }
 public CountryRegionController(ICountryRegionService countryRegionService)
 {
     this._countryRegionService = countryRegionService;
 }