コード例 #1
0
        public async Task <ActionResult <NotaFiscalViewModel> > Delete(int id)
        {
            var notaFiscalViewModel = _mapper.Map <NotaFiscalViewModel>(await _notaFiscalRepository.ObterPorId(id));

            if (notaFiscalViewModel == null)
            {
                return(NotFound());
            }

            await _notaFiscalService.Remover(id);

            return(CustomResponse(notaFiscalViewModel));
        }