public PartialViewResult FillWidgetWithData() { AllBlogPostsVM result = new AllBlogPostsVM(); result.AllBlogPosts = _blogServices.GetAllBlogPosts(); result.AllCategories = _blogServices.GetAllCategories(); result.AllTags = _blogServices.GetAllTags(); return(PartialView("~/Views/Shared/_BlogWidgetPartial.cshtml", result)); }
public AllBlogPostsVM GetAllBlogPostsVM() { AllBlogPostsVM allBlogPosts = new AllBlogPostsVM(); allBlogPosts.AllBlogPosts = _blogServices.GetAllBlogPosts(); allBlogPosts.AllCategories = _blogServices.GetAllCategories(); allBlogPosts.AllTags = _blogServices.GetAllTags(); return(allBlogPosts); }
public PartialViewResult FillWidgetWithData() { AllBlogPostsVM result = new AllBlogPostsVM(); result.AllBlogPosts = _blogPostRepo.GetAllBlogPostsWithCategoriesAndTags(); result.AllCategories = _categoryRepo.GetAllCategories(); result.AllTags = _tagRepo.GetAllTags(); return(PartialView("~/Views/Shared/_BlogWidgetPartial.cshtml", result)); }
public AllBlogPostsVM GetAllBlogPostsVM() { AllBlogPostsVM allBlogPosts = new AllBlogPostsVM(); allBlogPosts.AllBlogPosts = _blogPostRepo.GetAllBlogPostsWithCategoriesAndTags(); allBlogPosts.AllCategories = _categoryRepo.GetAllCategories(); allBlogPosts.AllTags = _tagRepo.GetAllTags(); return(allBlogPosts); }