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); }
public void UpdateSetting(DeliverySettingRecord setting) { _deliverySettingsRepository.Update(setting); }