public EducationDTO Create(EducationDTO modelDTO) { if (modelDTO != null) { return(EducationAssembler.ToDTO(EducationsRepo.Create(EducationAssembler.ToEntity(modelDTO)))); } return(null); }
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); }