public ActionResult Topic(string ID) { var items = HelpItems.Load(); string id = (ID ?? "").Trim().ToLower(); var help = items.FirstOrDefault(h => id == h.Slug.ToLower()); if (help == null) { return(new HttpNotFoundResult()); } help.LoadMarkdown(); return(View(help)); }
public ActionResult Topics() { var items = HelpItems.Load(); return(View(items)); }