public List <TPerfilVO> Listar(TPerfilVO filtro) { try { if (filtro.IDPerfil > 0) { List <TPerfilVO> listaRetorno = new List <TPerfilVO>(); listaRetorno.Add(TPerfilBLL.Obter(filtro.IDPerfil)); return(listaRetorno); } else { return(TPerfilBLL.Listar(filtro).ToList()); } } catch (CABTECException) { throw new CABTECException("Erro ao Listar Perfil."); } catch (Exception) { throw new CABTECException("Erro ao Listar Perfil."); } }