// GET: Asset/Details/ public IActionResult Details(long?id) { if (id == null) { return(NotFound()); } Asset asset = service.FindById(id.Value); if (asset == null) { return(NotFound()); } return(View(asset)); }