예제 #1
0
        public EducationDTO Create(EducationDTO modelDTO)
        {
            if (modelDTO != null)
            {
                return(EducationAssembler.ToDTO(EducationsRepo.Create(EducationAssembler.ToEntity(modelDTO))));
            }

            return(null);
        }
예제 #2
0
        public EducationDTO Get(int id)
        {
            EducationDTO oEducationDTO = null;

            if (id > 0)
            {
                Education oEducation = EducationsRepo.Get(id);
                if (oEducation != null)
                {
                    oEducationDTO = EducationAssembler.ToDTO(oEducation);
                }
            }

            return(oEducationDTO);
        }