// GET: DefectTrackings/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DefectTracking defectTracking = _defectTrackingService.Find(id); if (defectTracking == null) { return(HttpNotFound()); } return(View(defectTracking)); }