public ActionResult ItemInfo(int?id) //ItemID { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var woItem = db.GetWorkOrderItemInfoByItemID(id).FirstOrDefault(); ViewBag.WoItem = woItem; ViewBag.Assignments = db.GetItemInfoAssignmentsByItemID(id).ToList(); if (woItem == null) { return(HttpNotFound()); } return(View()); }