public async Task <FixAssetDto> UpdateFixAssetAsync(UpdateFixAssetInput input) { var entity = await _menuRepository.GetAsync(input.Id); ObjectMapper.Map(input, entity); entity = await _menuRepository.UpdateAsync(entity); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <FixAssetDto>(entity)); }
public async Task <FixAssetDto> UpdateFixAsset([FromBody] UpdateFixAssetInput input) { return(await _FixAssetAppService.UpdateFixAssetAsync(input)); }