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)); }