Exemple #1
0
        public static SchoolSubject SchoolSubjectWithWeeklyClassesDTOToSchoolSubject(SchoolSubjectWithWeeklyClassesDTO dto)
        {
            SchoolSubject retVal = new SchoolSubject();

            retVal.Id            = dto.Id;
            retVal.Name          = dto.Name;
            retVal.WeeklyClasses = dto.WeeklyClasses;

            logger.Info("Coverting SchoolSubjectWithWeeklyClassesDTO To SchoolSubject");
            return(retVal);
        }
Exemple #2
0
        public static SchoolSubjectWithWeeklyClassesDTO SchoolSubjectToSchoolSubjectWithWeeklyClassesDTO(SchoolSubject subject)
        {
            SchoolSubjectWithWeeklyClassesDTO retVal = new SchoolSubjectWithWeeklyClassesDTO()
            {
                Id            = subject.Id,
                Name          = subject.Name,
                WeeklyClasses = subject.WeeklyClasses
            };

            logger.Info("Coverting SchoolSubject to SchoolSubjectWithWeeklyClassesDTO.");
            return(retVal);
        }