예제 #1
0
        public virtual async Task <EducationExperienceListDto> UpdateAsync(Guid employeeId, Guid educationExperienceId, EducationExperienceUpdateDto input)
        {
            EducationExperience entity = await _educationExperienceRepository.GetAsync(educationExperienceId);

            entity = ObjectMapper.Map(input, entity);
            entity = await _educationExperienceRepository.UpdateAsync(entity);

            return(ObjectMapper.Map <EducationExperience, EducationExperienceListDto>(entity));
        }
예제 #2
0
        /// <summary>
        /// 获取修改
        /// </summary>
        /// <param name="employeeId">员工Id</param>
        /// <param name="educationExperienceId">主键</param>
        /// <returns></returns>
        public virtual async Task <GetEducationExperienceForEditorOutput> GetEditorAsync(Guid employeeId, Guid educationExperienceId)
        {
            EducationExperience entity = await _educationExperienceRepository.GetAsync(educationExperienceId);

            return(ObjectMapper.Map <EducationExperience, GetEducationExperienceForEditorOutput>(entity));
        }
예제 #3
0
        /// <summary>
        /// 详情
        /// </summary>
        /// <param name="employeeId">员工Id</param>
        /// <param name="educationExperienceId">主键</param>
        /// <returns></returns>
        public virtual async Task <EducationExperienceDetailDto> GetAsync(Guid employeeId, Guid educationExperienceId)
        {
            EducationExperience entity = await _educationExperienceRepository.GetAsync(educationExperienceId);

            return(ObjectMapper.Map <EducationExperience, EducationExperienceDetailDto>(entity));
        }