public async Task <FixAssetDto> CreateFixAssetAsync(CreateFixAssetInput input) { var entity = ObjectMapper.Map <FixAsset>(input); entity = await _menuRepository.InsertAsync(entity); return(ObjectMapper.Map <FixAssetDto>(entity)); }
public async Task <FixAssetDto> CreateFixAsset([FromBody] CreateFixAssetInput input) { return(await _FixAssetAppService.CreateFixAssetAsync(input)); }