public ActionResult Index() { _ops = new BlogOperations(); var vm = new HomeVM(); vm.BlogPosts = _ops.GetAllBlogPosts().BlogPosts.Where(p => p.Status == PageStatus.Approved).OrderByDescending(p => p.TimeCreated).ToList(); vm.BlogStats = _ops.GetBlogStats().BlogStats; vm.Categories = _ops.GetAllCategories().Categories; return View(vm); }