// GET: StatusOcorrencia/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } statusOcorrencia statusOcorrencia = db.statusOcorrencia.Find(id); if (statusOcorrencia == null) { return(HttpNotFound()); } return(View(statusOcorrencia)); }