/// <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)); }
/// <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)); }