// GET: WorkTypes/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } WorkType workType = _workTypeService.Find(id); if (workType == null) { return(HttpNotFound()); } return(View(workType)); }