Пример #1
0
        public IActionResult RemoverFundo(Guid id)
        {
            var fundo = _repositorio.ObterPorId(id);

            if (fundo == null)
            {
                return(NotFound());
            }
            _repositorio.RemoverFundo(fundo);
            return(Ok());
        }
        public IActionResult RemoverFundo(Guid id, [FromBody] FundoCapital fundo)
        {
            var fundoAntigo = _repositorio.obterPorId(id);

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

            _repositorio.RemoverFundo(fundo);
            return(Ok());
        }