public async Task <ActionResult <LancamentoViewModel> > Excluir(Guid id) { var lancamento = await ObterLancamento(id); if (lancamento == null) { return(NotFound()); } await _lancamentoService.Remove(id); return(CustomResponse(lancamento)); }
public async Task <ActionResult <LancamentoViewModel> > Excluir(Guid id) { var lancamento = await ObterLancamento(id); if (lancamento == null) { return(NotFound()); } await _lancamentoService.Remove(id); return(CustomResponse(lancamento)); }