public ShipFixedRateTableDisplay PutShipFixedRateTable(ShipFixedRateTableDisplay rateTable) { var fixedMethod = (IFixedRateShippingGatewayMethod)_fixedRateShippingGatewayProvider.GetShippingGatewayMethod(rateTable.ShipMethodKey, rateTable.ShipCountryKey); fixedMethod = rateTable.ToFixedRateShipMethod(fixedMethod); _fixedRateShippingGatewayProvider.SaveShippingGatewayMethod(fixedMethod); return(fixedMethod.RateTable.ToShipFixedRateTableDisplay()); }
public ShipFixedRateTableDisplay PutShipFixedRateTable(ShipFixedRateTableDisplay rateTable) { var fixedMethod = (IFixedRateShippingGatewayMethod)_fixedRateShippingGatewayProvider.GetShippingGatewayMethod(rateTable.ShipMethodKey, rateTable.ShipCountryKey); fixedMethod = rateTable.ToFixedRateShipMethod(fixedMethod); _fixedRateShippingGatewayProvider.SaveShippingGatewayMethod(fixedMethod); return fixedMethod.RateTable.ToShipFixedRateTableDisplay(); }