public ActionResult Delete(int id = 0) { InspectionDetail inspectionDetail = new InspectionDetail(); if (id > 0) { inspectionRepository.DelectInspectionDetail(id); } return(RedirectToAction("Index")); }