public ExperienceDTO Create(ExperienceDTO modelDTO) { if (modelDTO != null) { return(ExperienceAssembler.ToDTO(ExperiencesRepo.Create(ExperienceAssembler.ToEntity(modelDTO)))); } return(null); }
public ExperienceDTO Get(int id) { ExperienceDTO oExperienceDTO = null; if (id > 0) { Experience oExperience = ExperiencesRepo.Get(id); if (oExperience != null) { oExperienceDTO = ExperienceAssembler.ToDTO(oExperience); } } return(oExperienceDTO); }