示例#1
0
文件: Main.cs 项目: naveensky/blog
 public IActionResult ListArticlesTagged(string tag)
 {
     tag             = Tags.Normalize(tag);
     ViewData["Tag"] = tag;
     return(View("Tag", articleStore
                 .GetByTag(tag)
                 .Reverse()));
 }
示例#2
0
文件: Feeds.cs 项目: naveensky/blog
 public IActionResult GetAtomFeed(string tag)
 {
     tag = Tags.Normalize(tag);
     Response.ContentType = "application/atom+xml";
     return(View("Feeds/Atom", articleStore.GetByTag(tag).Reverse()));
 }