Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool insurance = false;
- DateTime? insuranceDate = DateTime.Now;
- if (rblInsurance.SelectedItem != null && rblInsurance.SelectedItem.Value == "true")
- {
- insurance = true;
- insuranceDate = Convert.ToDateTime(txtInsuranceDate.Text);
- }
- else
- {
- insuranceDate = null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement