예제 #1
0
        public virtual async Task <SalaryListDto> UpdateAsync(Guid id, SalaryUpdateDto input)
        {
            Salary entity = await _salaryRepository.GetAsync(id);

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

            return(ObjectMapper.Map <Salary, SalaryListDto>(entity));
        }
예제 #2
0
 public virtual async Task <SalaryListDto> UpdateAsync(Guid id, SalaryUpdateDto input)
 {
     return(await _salaryAppService.UpdateAsync(id, input));
 }