public ActionResult Details(int id) { GrandPrixModel gp = new GrandPrixModel(id, ref db); if (gp.Race == null) { throw new HttpException(404, "The race " + id + " requested is not in the database."); } ViewBag.Title = gp.Race.year + " " + gp.Race.name; return(View(gp)); }
public PartialViewResult QualyResults(GrandPrixModel gp) { return(PartialView("_QualyResults", gp)); }
public PartialViewResult RaceResults(GrandPrixModel gp) { return(PartialView("_RaceResults", gp)); }