示例#1
0
文件: Main.cs 项目: naveensky/blog
 public IActionResult GetIndex()
 {
     return(View("Index", articleStore
                 .GetAll()
                 .Reverse()
                 .Take(7)));
 }
示例#2
0
文件: Feeds.cs 项目: naveensky/blog
 public IActionResult GetSitemap()
 {
     Response.ContentType = "application/xml";
     return(View("Feeds/Sitemap", articleStore.GetAll()));
 }