public ActionResult GetAllBlogPosts() { BlogPostBusinessService bpBS = new BlogPostBusinessService(); BlogPostViewModel bpVM = bpBS.DisplayAllBlogPosts(); return Json(bpVM); }
// // GET: /Blog/ public ActionResult Index() { BlogPostBusinessService bpBS = new BlogPostBusinessService(); BlogPostViewModel bpVM = bpBS.DisplayAllBlogPosts(); return View("Index", bpVM); }