Ejemplo n.º 1
0
        private bool IsStudentExists(Student newStudent)
        {
            StudentGateway aStudentGateway = new StudentGateway();

            Student aStudent = aStudentGateway.GetStudentByRegNo(newStudent.RegNo);

            if (aStudent != null)
            {
                return true;
            }
            return false;
        }
Ejemplo n.º 2
0
 public Student GetStudentByRegNo(string regNo)
 {
     StudentGateway aStudentGateway = new StudentGateway();
     Student student = aStudentGateway.GetStudentByRegNo(regNo);
     return student;
 }