public IActionResult Details(int?id) { if (!id.HasValue) { return(NotFound()); } var make = _repo.Find(id.Value); if (make == null) { return(NotFound()); } return(View(make)); }
public IActionResult OnGet(int?id) { if (!id.HasValue) { return(NotFound()); } Make = _repo.Find(id.Value); if (Make == null) { return(NotFound()); } return(Page()); }