// GET: Types/Details/5 public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } var types = _repository.FindItem (m => m.TypeId == id); if (types == null) { return(NotFound()); } return(View(types)); }