public TaxRateController(ITaxRateService taxRateService, ITaxZoneService taxZoneService, ITaxClassService taxClassService, ISettingService settingService) { this.taxRateService = taxRateService; this.taxZoneService = taxZoneService; this.taxClassService = taxClassService; this.settingService = settingService; }
public TaxZoneViewModelValidator(ITaxZoneService taxZoneService) { RuleFor(z => z.Name).NotEmpty(); RuleFor(z => z).Must( z => !taxZoneService.FindAll().Any(d => d.Id != z.Id && d.Name == z.Name)) .WithName("Name") .WithMessage("Name is already used".TA()); // TODO: Check for conflicts of countries or regions are defined in other tax zones }
public ShoppingCartController(DataContext db, ICurrentUser currentUser, ISettingService settings, ITaxZoneService taxZoneService, ICustomerService customerService, ITaxRateService taxRateService, IShippingService shippingService, IProductSkuService productSkuService, IProductService productService) : base(db, currentUser) { this.settings = settings; this.taxZoneService = taxZoneService; this.customerService = customerService; this.taxRateService = taxRateService; this.shippingService = shippingService; this.productSkuService = productSkuService; this.productService = productService; }
public TaxZoneController(ITaxZoneService taxZoneService, ICountryService countryService) { this.taxZoneService = taxZoneService; this.countryService = countryService; }
public TaxService(ITaxZoneService taxZoneService, ITaxRateService taxRateService) { this.taxZoneService = taxZoneService; this.taxRateService = taxRateService; }