Exemplo n.º 1
0
        public ActionResult DisplayPostsWithStatus0()
        {
            var ops = new BlogPostOperations();
            var vm = new HomeIndexViewModel();
            vm.BlogPosts = ops.GetPostsWithStatus0();
            vm.Categories = ops.GetAllCategories();
            vm.StaticPages = ops.GetAllStaticPages();

            return View(vm);
        }