public ActionResult Delete(int id = 0) { var data = inspectionRepository.Get(id); if (data == null) { return(HttpNotFound()); } return(View(data)); }