public ActionResult Details(int?id) { ListType listType = _listTypeService.Find(id); if (listType == null) { return(NotFound()); } return(View(listType)); }