Example #1
0
        public async Task Delete(int commentId)
        {
            await CommentaryManager.DeleteComment(commentId);

            Clients.All.deleteCommentToPage(commentId);
        }
Example #2
0
        public async Task Send(int newsId, int userId, string comment, string userName)
        {
            var commentId = await CommentaryManager.SaveComment(comment, userId, newsId, userName);

            Clients.All.addNewCommentToPage(commentId, userName, comment, DateTime.Now.ToString());
        }