public Student Get(int id) { StudentFactory objBusinessStudent = new StudentFactory(); Student result = new Student(); result = objBusinessStudent.GetStudentById(id); return(result); }
public Student GetStudentById(int id) { Student s1; StudentFactory s = new StudentFactory(); s1 = s.GetStudentById(id); return(s1); }