// GET: Garage/Details/5 public ActionResult Details(int id = 0) { if (id != 0) { //Update the ParkPrice to current price garage.UpdateParkPrice(); return(View(garage.GetVehicle(id))); } return(RedirectToAction("Index")); }