예제 #1
0
        /// <summary>
        /// 获取修改
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        public virtual async Task <GetSalaryForEditorOutput> GetEditorAsync(Guid id)
        {
            Salary entity = await _salaryRepository.GetAsync(id);

            return(ObjectMapper.Map <Salary, GetSalaryForEditorOutput>(entity));
        }
예제 #2
0
        /// <summary>
        /// 详情
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        public virtual async Task <SalaryDetailDto> GetAsync(Guid id)
        {
            Salary entity = await _salaryRepository.GetAsync(id);

            return(ObjectMapper.Map <Salary, SalaryDetailDto>(entity));
        }