Beispiel #1
0
        public ActionResult Admin()
        {
            _blogPostDao = new BlogPostDao_linq();

            List<BlogPost> blogPosts = _blogPostDao.GetAllPosts().ToList();

            return View(blogPosts);
        }
Beispiel #2
0
 public HomeController()
 {
     _blogPostDao = new BlogPostDao_linq();
 }
Beispiel #3
0
 public WaiGuoAtHomeController()
 {
     _blogPostDao = new BlogPostDao_linq(); //
 }