public ShippingMethodController(IShippingMethodService shippingMethodService, IShippingZoneService shippingZoneService, ISettingService settingService) { this.shippingMethodService = shippingMethodService; this.shippingZoneService = shippingZoneService; this.settingService = settingService; }
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()); }
public ShippingZoneController(IShippingZoneService shippingZoneService, ICountryService countryService) { this.shippingZoneService = shippingZoneService; this.countryService = countryService; }
public ShippingService(DataContext db, IShippingZoneService shippingZoneService) { this.db = db; this.shippingZoneService = shippingZoneService; }