public IActionResult Details(int?Id) { if (_service.Get(Id) != null) { return(View(_service.Get(Id))); } else { return(NotFound()); } }