示例#1
0
        public ActionResult Demos()
        {
            DemoPageModel model = new DemoPageModel(Server.MapPath(DemoPageModel.DefaultXmlIndexPath));

            model.ActiveButton = NavigationButtons.Demos;
            return(View(model));
        }
示例#2
0
        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));
        }