private void SaveRecord() { RewardPointsDetails clsDetails = new RewardPointsDetails(); clsDetails.EnableRewardPoints = chkEnableRewardPoints.Checked; clsDetails.RoundDownRewardPoints = chkRoundDownRewardPoints.Checked; clsDetails.RewardPointsMinimum = Convert.ToDecimal(txtRewardPointsMinimum.Text); clsDetails.RewardPointsEvery = Convert.ToDecimal(txtRewardPointsEvery.Text); clsDetails.RewardPoints = Convert.ToDecimal(txtRewardPoints.Text); clsDetails.EnableRewardPointsAsPayment = chkEnableRewardPointsAsPayment.Checked; clsDetails.RewardPointsMaxPercentageForPayment = Convert.ToDecimal(txtRewardPointsMaxPercentageForPayment.Text); clsDetails.RewardPointsPaymentValue = Convert.ToDecimal(txtRewardPointsPaymentValue.Text); clsDetails.RewardPointsPaymentCashEquivalent = Convert.ToDecimal(txtRewardPointsPaymentCashEquivalent.Text); Terminal clsTerminal = new Terminal(); clsTerminal.UpdateRewardPointSystem(clsDetails); clsTerminal.CommitAndDispose(); }