public string MakePayment(int registrationId, double amount) { Student student = (Student)Session["student"]; int studentId = student.StudentId; if (dao.ReceivePayment(studentId, registrationId, amount)) { student = dao.FindStudentById(studentId); Session["student"] = student; return("Thank you for your payment."); } else { return("A problem occurred while processing payment."); } }