protected override IFieldSetter <ShippingWarehouse> ConfigureHandlers(IFieldSetter <ShippingWarehouse> setter, ShippingWarehouseDto dto) { return(setter .AddHandler(e => e.WarehouseName, new ShippingWarehouseNameHandler(_dataService, _historyService)) .AddHandler(e => e.Address, new AddressHandler(_dataService, _historyService, _cleanAddressService)) .AddHandler(e => e.City, new CityHandler(_dataService, _historyService))); }
protected override IFieldSetter <Article> ConfigureHandlers(IFieldSetter <Article> setter, ArticleDto dto) { return(setter .AddHandler(e => e.Spgr, new SpgrHandler(_dataService, _historyService)) .AddHandler(e => e.Description, new DescriptionHandler(_dataService, _historyService)) .AddHandler(e => e.CountryOfOrigin, new CountryOfOriginHandler(_dataService, _historyService)) .AddHandler(e => e.ShelfLife, new ShelfLifeHandler(_dataService, _historyService)) .AddHandler(e => e.Ean, new EanHandler(_dataService, _historyService))); }
protected override IFieldSetter <Warehouse> ConfigureHandlers(IFieldSetter <Warehouse> setter, WarehouseDto dto) { bool isInjection = dto.AdditionalInfo == "INJECTION"; return(setter .AddHandler(e => e.Region, new RegionHandler(_dataService, _historyService)) .AddHandler(e => e.PickingTypeId, new PickingTypeIdHandler(_dataService, _historyService)) .AddHandler(e => e.LeadtimeDays, new LeadtimeDaysHandler(_dataService, _historyService)) .AddHandler(e => e.AvisaleTime, new AvisaleTimeHandler(_dataService, _historyService)) .AddHandler(e => e.DeliveryType, new DeliveryTypeHandler(_dataService, _historyService))); }