Esempio n. 1
0
        public ActionResult Edit(Guid key)
        {
            var topic = _topicDriver.Get(key, new string[] { "Tags", "Tags.Category", "Thread", "Thread.TagCategoryMaps" });

            if (topic != null && !topic.IsNew())
            {
                TopicClient topicClient = _topicDriver.ToClient(topic);
                ProcessTagOption(topicClient);
                ScriptRegister.AddJson("topic", topicClient);
                return(View("Record", topicClient));
            }
            return(HttpNotFound());
        }