public IActionResult AlterarFundo(Guid id, [FromBody] FundoCapital fundo)
        {
            var fundoAntigo = _repositorio.ObterporId(id);

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

            fundoAntigo.Nome            = fundo.Nome;
            fundoAntigo.ValorAtual      = fundo.ValorAtual;
            fundoAntigo.ValorNecessario = fundo.ValorNecessario;
            fundoAntigo.DataResgate     = fundo.DataResgate;
            _repositorio.Alterar(fundoAntigo);

            return(Ok());
        }