public ActionResult Details(int id) { var restaurant = db.GetBy(id); if (restaurant is null) { return(HttpNotFound()); } return(View(restaurant)); }