コード例 #1
0
ファイル: BlogController.cs プロジェクト: hwirontono/hadoz.me
 public ActionResult GetAllBlogPosts()
 {
     BlogPostBusinessService bpBS = new BlogPostBusinessService();
     BlogPostViewModel bpVM = bpBS.DisplayAllBlogPosts();
     return Json(bpVM);
 }
コード例 #2
0
ファイル: BlogController.cs プロジェクト: hwirontono/hadoz.me
        //
        // GET: /Blog/

        public ActionResult Index()
        {
            BlogPostBusinessService bpBS = new BlogPostBusinessService();
            BlogPostViewModel bpVM = bpBS.DisplayAllBlogPosts();
            return View("Index", bpVM);
        }