Esempio n. 1
0
        public ActionResult New(string key)
        {
            var currentThread = string.IsNullOrEmpty(key) ? _threadDriver.RootThread : _threadDriver.GetThreadByKey(key);

            if (currentThread == null)
            {
                return(HttpNotFound());
            }

            var topic = _topicDriver.Create();

            topic.Thread   = currentThread;
            topic.ThreadId = currentThread.Id;

            var topicClient = _topicDriver.ToClient(topic);

            ProcessTagOption(topicClient);
            ScriptRegister.AddJson("topic", topicClient);

            return(View("Record", topicClient));
        }