コード例 #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));
        }
コード例 #2
0
        public PartialViewResult AdminPanelTabbedUsers()
        {
            var model = _blogServices.GetAllUsers();

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