Пример #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);
        }