public async Task <DepreciationDto> UpdateDepreciationAsync(UpdateDepreciationInput input) { var entity = await _menuRepository.GetAsync(input.Id); ObjectMapper.Map(input, entity); entity = await _menuRepository.UpdateAsync(entity); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <DepreciationDto>(entity)); }
public async Task <DepreciationDto> UpdateDepreciation([FromBody] UpdateDepreciationInput input) { return(await _depreciationAppService.UpdateDepreciationAsync(input)); }