Exemplo n.º 1
0
        public async Task <DepreciationDto> CreateDepreciationAsync(CreateDepreciationInput input)
        {
            var entity = ObjectMapper.Map <Depreciation>(input);

            entity = await _menuRepository.InsertAsync(entity);

            return(ObjectMapper.Map <DepreciationDto>(entity));
        }
Exemplo n.º 2
0
 public async Task <DepreciationDto> CreateDepreciation([FromBody] CreateDepreciationInput input)
 {
     return(await _depreciationAppService.CreateDepreciationAsync(input));
 }