public IActionResult apagarFundo(Guid id) { var fundoCapitalDeletar = _FundoRepository.BuscarPorId(id); if (fundoCapitalDeletar == null) { return(NotFound()); } _FundoRepository.Deletar(fundoCapitalDeletar); return(Ok()); }