Esempio n. 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));
        }
        // GET: PartialView
        public PartialViewResult Action()
        {
            var model = _staticPageServices.GetAllStaticPages();

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