public ActionResult Delete(int id) { try { if (ModelState.IsValid) { gerenciador.Remover(new Empresa { Id = id }); return(RedirectToAction("ListagemDistribuidoras")); } return(View()); } catch (NegocioException n) { throw new ControllerException("Erro ao tentar remover o objeto.", n); } catch (Exception e) { throw new ControllerException("Erro ao tentar remover objeto.", e); } }