Example #1
0
        public ActionResult AdminPanel()
        {
            AdminPanelVM model = new AdminPanelVM();

            model.Users       = _blogServices.GetAllUsers();
            model.Categories  = _blogServices.GetAllCategories();
            model.StaticPages = _staticPageServices.GetAllStaticPages();
            model.BlogPosts   = _blogServices.GetAllBlogPosts();

            return(View(model));
        }
        public PartialViewResult AdminPanelTabbedUsers()
        {
            var model = _blogServices.GetAllUsers();

            return(PartialView("~/Views/PartialView/AdminPanelTabbedUsers.cshtml", model));
        }