public ActionResult Demos() { DemoPageModel model = new DemoPageModel(Server.MapPath(DemoPageModel.DefaultXmlIndexPath)); model.ActiveButton = NavigationButtons.Demos; return(View(model)); }
public ActionResult ShowDemo() { string name = this.RouteData.Values["demoId"].ToString(); IndividualDemoModel model = DemoPageModel.LoadDemo(Server.MapPath(DemoPageModel.DefaultXmlIndexPath), name); model.ActiveButton = NavigationButtons.Demos; return(View(model)); }