Esempio n. 1
0
        public void Create(string title, string content)
        {
            var thread = _forumContext.InsertThread(title, content);
            var post   = _forumContext.InsertPost(thread.ID, content, out thread);

            Clients.All.threadCreated(thread);
        }
Esempio n. 2
0
        public void AddPostToThread(int threadID, string content)
        {
            Thread thread;
            var    post = _forumContext.InsertPost(threadID, content, out thread);

            PostAdded(post);
            ThreadHub.ThreadUpdated(thread);
        }