private Payment PopulateObject(Booking b) { payment = new Payment(); payment.PaymentID = paymentController.GeneratePaymentID(); payment.Date = DateTime.Today.ToShortDateString(); payment.PaymentType = "Deposit"; payment.PaymentAmount = Convert.ToDecimal(b.BookingID); payment.BookingID = b.BookingID; payment.CreditCardNumber = textBox1.Text; payment.CreditCardExpiryDate = comboBox1.SelectedItem.ToString() + comboBox2.SelectedItem.ToString(); payment.CreditCardCVV = textBox3.Text; return(payment); }