public ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
 {
     var page = new PageDal().GetPageByViewName(viewName);
     return new ViewEngineResult(new DBView(page), this);
 }
Esempio 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" });
 }