async void UpdateFee() { PermitFeeRate sidewalkFee = new PermitFeeRate(); sidewalkFee.Status = true; sidewalkFee.PermitFeeID = long.Parse(SidewalkFeeId); sidewalkFee.CurrentRate = decimal.Parse(SidewalkFee); sidewalkFee.NewEffectiveRate = decimal.Parse(SidewalkFee); PermitFeeRate driveFee = new PermitFeeRate(); driveFee.Status = true; driveFee.PermitFeeID = long.Parse(DriveFeeId); driveFee.CurrentRate = decimal.Parse(DriveFee); driveFee.NewEffectiveRate = decimal.Parse(DriveFee); PermitFeeRate curbFee = new PermitFeeRate(); curbFee.Status = true; curbFee.PermitFeeID = long.Parse(CurbFeeId); curbFee.CurrentRate = decimal.Parse(CurbFee); curbFee.NewEffectiveRate = decimal.Parse(CurbFee); PermitFee minimumFee = new PermitFee(); await _dataService.UpdatePermitFeeRate(sidewalkFee); await _dataService.UpdatePermitFeeRate(curbFee); await _dataService.UpdatePermitFeeRate(driveFee); minimumFee.MinimumFee = decimal.Parse(MinimumFee); minimumFee.PermitFeeId = long.Parse(MinimumFeeId); minimumFee.MaximumFee = decimal.Parse(MaximumFee); await _dataService.UpdatePermitFee(minimumFee); MessageBox.Show("Fee updated successfully."); }
public PermitFee UpdatePermitFee(PermitFee model) { return(permitLogic.UpdatePermitFee(model)); }