示例#1
0
        public ActionResult EditFaqEntry(int id)
        {
            var faqEntryPart = _faqService.GetFaqEntry(id);

            if (faqEntryPart == null)
            {
                return(new HttpNotFoundResult());
            }

            var model = Services.ContentManager.BuildEditor(faqEntryPart);

            return(View(model));
        }
示例#2
0
        public ActionResult ViewTopic(int topicId)
        {
            var topic = _faqService.GetFaqEntry(topicId);

            return(View(topic));
        }