public static SchoolClassDetailsDTO SchoolClassToSchoolClassDetailsDTO(SchoolClass sc)
        {
            SchoolClassDetailsDTO retVal = new SchoolClassDetailsDTO()
            {
                Id          = sc.Id,
                SchoolGrade = sc.SchoolGrade,
                ClassName   = sc.Name,
                Students    = sc.Students.Select(student => UserToUserDTOConverters.StudentToStudentBasicDTO(student))
            };

            logger.Info("Converting SchoolClass to SchoolClassDetaildSTO");
            return(retVal);
        }
        public static GradeDTO GradeToGradeDTO(Grade grade)
        {
            GradeDTO retVal = new GradeDTO()
            {
                Id            = grade.Id,
                Value         = grade.Value,
                DateOfGrading = grade.DateOfGrading,

                Subject = SchoolSubjectToSchoolSubjectDTOConverters
                          .SchoolSubjectToSchoolSubjectDTO(grade.SchoolClassTeacherSchoolSubject.TeacherSchoolSubject.SchoolSubject),

                GradingTeacher = UserToUserDTOConverters
                                 .UserToUserSimpleViewDTO(grade.SchoolClassTeacherSchoolSubject.TeacherSchoolSubject.Teacher),

                Student = UserToUserDTOConverters
                          .StudentToStudentBasicDTO(grade.Student)
            };

            logger.Info("Converting Grade to GradeDTO.");
            return(retVal);
        }