public void SendDataToBAL() { Student objStudent = new Student(); objStudent.ObjSemesters = new Semesters(); //objStudent.ObjSemesters.SemSubConfigID = Convert.ToInt32(cmbSemster.SelectedValue); objStudent.ObjSemesters.SemesterCode = cmbSemster.Text; objStudent.ObjSemesters.SemesterID = Convert.ToInt32(cmbSemster.SelectedValue); objStudent.StudentID = Convert.ToInt32(cmbStudentID.SelectedValue); objStudent.universityID = cmbStudentID.Text; systemManager objsystemManager = new systemManager(); objsystemManager.sendStuSemConfig(objStudent); MessageBox.Show("Student configuration data has been recorded successfully"); }