public ActionResult ListagemDistribuidoras() { try { List <Empresa> empresas = gerenciador.ObterEmpresas(); if (empresas == null || empresas.Count == 0) { empresas = null; } return(View(empresas)); } catch (NegocioException n) { throw new ControllerException("Erro ao tentar obter os objetos.", n); } catch (Exception e) { throw new ControllerException("Erro ao tentar obter os objetos.", e); } }