예제 #1
0
        public IHttpActionResult Get(int id)
        {
            var major = _majorService.Get(id);

            if (major != null)
            {
                return(Ok(GetMajorDto(major)));
            }

            return(NotFound());
        }
예제 #2
0
 private void SetStudentSchoolProperties(Student student)
 {
     student.Grade = _gradeService.Get(student.GradeId);
     student.Group = _groupService.Get(student.GroupId);
     student.Major = _majorService.Get(student.MajorId);
 }