Exemplo 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);
        }
Exemplo 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);
        }