Beispiel #1
0
 public IActionResult ListArticlesTagged(string tag)
 {
     tag             = Tags.Normalize(tag);
     ViewData["Tag"] = tag;
     return(View("Tag", articleStore
                 .GetByTag(tag)
                 .Reverse()));
 }
Beispiel #2
0
 public IActionResult GetAtomFeed(string tag)
 {
     tag = Tags.Normalize(tag);
     Response.ContentType = "application/atom+xml";
     return(View("Feeds/Atom", articleStore.GetByTag(tag).Reverse()));
 }