public async Task <DepreciationDto> CreateDepreciationAsync(CreateDepreciationInput input) { var entity = ObjectMapper.Map <Depreciation>(input); entity = await _menuRepository.InsertAsync(entity); return(ObjectMapper.Map <DepreciationDto>(entity)); }
public async Task <DepreciationDto> CreateDepreciation([FromBody] CreateDepreciationInput input) { return(await _depreciationAppService.CreateDepreciationAsync(input)); }