// GET: EnderecoEntidadeDeNegocios/Delete/5 public ActionResult Delete(int id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } EnderecoEntidadeDeNegocio enderecoEntidadeDeNegocio = dao.Buscar(id); if (enderecoEntidadeDeNegocio == null) { return(HttpNotFound()); } return(View(enderecoEntidadeDeNegocio)); }