public IActionResult Excluir(int id)
        {
            try{
                var s = _repo.Deletar(id);

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

                return(Ok("Funcionario(a) excluĂ­do(a)"));
            }
            catch (Exception e) {
                throw new Exception(e.Message);
            }
        }