예제 #1
0
        public IActionResult Excluir(int id)
        {
            try{
                var s = _repo.Deletar(id);

                if (s == 0)
                {
                    return(BadRequest("Problema ao tentar excluir pergunta"));
                }

                return(Ok("Pergunta excluída"));
            }
            catch (Exception e) {
                throw new Exception(e.Message);
            }
        }