예제 #1
0
        public ExperienceDTO Create(ExperienceDTO modelDTO)
        {
            if (modelDTO != null)
            {
                return(ExperienceAssembler.ToDTO(ExperiencesRepo.Create(ExperienceAssembler.ToEntity(modelDTO))));
            }

            return(null);
        }
예제 #2
0
        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);
        }