Ejemplo n.º 1
0
        public TeacherToSubjectDTOForStudentAndParent ConvertToTeacherToSubjectDTOForStudentAndParent(TeacherToSubject x)
        {
            TeacherToSubjectDTOForStudentAndParent dto = new TeacherToSubjectDTOForStudentAndParent
            {
                Id              = x.Id,
                Teacher         = teacherToDTO.ConvertToTeacherDTOForStudentAndParent(x.Teacher),
                Subject         = x.Subject,
                StartedTeaching = x.StartedTeaching,
                StoppedTeaching = x.StoppedTeaching
            };

            return(dto);
        }
Ejemplo n.º 2
0
        public FormDTOForStudentAndParents ConvertToFormDTOForStudentAndParent(Form x)
        {
            FormDTOForStudentAndParents dto = new FormDTOForStudentAndParents
            {
                Id               = x.Id,
                Grade            = x.Grade,
                Tag              = x.Tag,
                Started          = x.Started,
                AttendingTeacher = teacherToDTO.ConvertToTeacherDTOForStudentAndParent(x.AttendingTeacher)
            };

            return(dto);
        }