示例#1
0
        public static Student FindById(int id)
        {
            var student = new Student();

            student.Get(id);

            return student;
        }
示例#2
0
        public static Student FindById(int id)
        {
            var student = new Student();

            student.Get(id);

            return(student);
        }
示例#3
0
        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);
        }