public ActionResult ListPages() { PageRepo reap = new PageRepo(); var model = reap.GetAllPages(); return(View(model)); }
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)); }