public IHttpActionResult Get(int id) { var major = _majorService.Get(id); if (major != null) { return(Ok(GetMajorDto(major))); } return(NotFound()); }
private void SetStudentSchoolProperties(Student student) { student.Grade = _gradeService.Get(student.GradeId); student.Group = _groupService.Get(student.GroupId); student.Major = _majorService.Get(student.MajorId); }