Exemple #1
0
        public ActionResult Index()
        {
            var manager = new BlogFileSystemManager(Server.MapPath(ConfigurationManager.AppSettings["BlogPostsDirectory"]));
            var model   = manager.GetBlogListings(5);

            return(View(model));
        }
Exemple #2
0
 public ActionResult Index()
 {
     var manager = new BlogFileSystemManager(Server.MapPath(ConfigurationManager.AppSettings["BlogPostsDirectory"]));
     var model = manager.GetBlogListings(5);
     return View(model);
 }