public ShippingMethodController(IShippingMethodService shippingMethodService, 
     IShippingZoneService shippingZoneService, ISettingService settingService)
 {
     this.shippingMethodService = shippingMethodService;
     this.shippingZoneService = shippingZoneService;
     this.settingService = settingService;
 }
Exemplo n.º 2
0
 public ShippingMethodController(IShippingMethodService shippingMethodService,
                                 IShippingZoneService shippingZoneService, ISettingService settingService)
 {
     this.shippingMethodService = shippingMethodService;
     this.shippingZoneService   = shippingZoneService;
     this.settingService        = settingService;
 }
Exemplo n.º 3
0
 public ShippingZoneViewModelValidator(IShippingZoneService shippingZoneService)
 {
     RuleFor(z => z.Name).NotEmpty();
     RuleFor(z => z).Must(
         z => !shippingZoneService.FindAll().Any(d => d.Id != z.Id && d.Name == z.Name))
     .WithName("Name")
     .WithMessage("Name is already used".TA());
 }
Exemplo n.º 4
0
 public ShippingZoneController(IShippingZoneService shippingZoneService, ICountryService countryService)
 {
     this.shippingZoneService = shippingZoneService;
     this.countryService      = countryService;
 }
Exemplo n.º 5
0
 public ShippingZoneController(IShippingZoneService shippingZoneService, ICountryService countryService)
 {
     this.shippingZoneService = shippingZoneService;
     this.countryService = countryService;
 }
Exemplo n.º 6
0
 public ShippingService(DataContext db, IShippingZoneService shippingZoneService)
 {
     this.db = db;
     this.shippingZoneService = shippingZoneService;
 }
Exemplo n.º 7
0
 public ShippingService(DataContext db, IShippingZoneService shippingZoneService)
 {
     this.db = db;
     this.shippingZoneService = shippingZoneService;
 }