示例#1
0
        public IActionResult RemoverFundo(Guid id)
        {
            var fundo = _repositorio.ObterPorId(id);

            if (fundo == null)
            {
                return(NotFound());
            }
            _repositorio.Remover(fundo);
            return(Ok());
        }
示例#2
0
        public IActionResult RemoverFundo(Guid id)
        {
            var reg = _repo.Obter(id);

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

            _repo.Remover(reg);
            return(Ok());
        }