Beispiel #1
0
        public ActionResult AdminStaticPageWithPosts()
        {
            var manager = new TagManager();
            var vm      = new StaticPageSearchVM();

            vm.SetTags(manager.GetAllTags());
            return(View(vm));
        }
Beispiel #2
0
        public ActionResult AdminEditStaticPage(int id)
        {
            var tagmanager = new TagManager();
            var manager    = new StaticManger();
            var page       = manager.GetPostByID(id);
            var vm         = new StaticPageSearchVM();

            vm.SetTags(tagmanager.GetAllTags());

            vm.Page = page;

            return(View(vm));
        }