예제 #1
0
        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));
        }
예제 #2
0
        public ActionResult Topics()
        {
            var items = HelpItems.Load();

            return(View(items));
        }