public static Student FindById(int id) { var student = new Student(); student.Get(id); return student; }
public static Student FindById(int id) { var student = new Student(); student.Get(id); return(student); }
public void Get(int id) { var applicationEntity = _applicationRepo.Retrieve(id); if (applicationEntity == null) { throw new InvalidOperationException("Application not found."); } Student.Get(applicationEntity.StudentId); LoadData(applicationEntity); }