コード例 #1
0
        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));
        }
コード例 #2
0
 public async Task <FixAssetDto> UpdateFixAsset([FromBody] UpdateFixAssetInput input)
 {
     return(await _FixAssetAppService.UpdateFixAssetAsync(input));
 }