Beispiel #1
0
        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));
        }
Beispiel #2
0
 public PartialViewResult QualyResults(GrandPrixModel gp)
 {
     return(PartialView("_QualyResults", gp));
 }
Beispiel #3
0
 public PartialViewResult RaceResults(GrandPrixModel gp)
 {
     return(PartialView("_RaceResults", gp));
 }