Ejemplo n.º 1
0
 public ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
 {
     var page = new PageDal().GetPageByViewName(viewName);
     return new ViewEngineResult(new DBView(page), this);
 }
Ejemplo n.º 2
0
 public void Test()
 {
     var pageDal = new PageDal();
     pageDal.CreatePage(new Page{Html = "Welcome on Index Site !",ViewName = "Index"});
     pageDal.CreatePage(new Page{Html = "Welcome on Aobut Site !", ViewName = "About" });
 }