예제 #1
0
        public void AddSetting(
            string state,
            double postageCost,
            double codCost,
            int countryId, int timetodeliver
            )
        {
            var newRecord = new DeliverySettingRecord()
            {
                State        = state,
                Country      = _countryRepository.Get(countryId),
                PostageCost  = postageCost,
                CodCost      = codCost,
                DeliveryTime = timetodeliver
            };

            _deliverySettingsRepository.Create(newRecord);
        }
예제 #2
0
 public void UpdateSetting(DeliverySettingRecord setting)
 {
     _deliverySettingsRepository.Update(setting);
 }