public IActionResult Deletar([FromBody] T objeto, string parametroDeletar) { RetornoTratado <T> retorno = new RetornoTratado <T>(); retorno = genericBusiness.DeletarValidar(objeto, retorno, parametroDeletar); if (retorno.Erro == true) { return(Unauthorized(retorno)); } else { return(Ok(retorno)); } }