public ActionResult ListPages()
        {
            PageRepo reap  = new PageRepo();
            var      model = reap.GetAllPages();

            return(View(model));
        }
Beispiel #2
0
        public ActionResult Index()
        {
            PageRepo pg    = new PageRepo();
            PostRepo pr    = new PostRepo();
            var      model = new DisplayPagePostViewModel();

            model.Posts = pr.GetAllPosts();
            model.Pages = pg.GetAllPages();

            return(View(model));
        }