Ejemplo n.º 1
0
        public async Task Delete(int commentId)
        {
            await CommentaryManager.DeleteComment(commentId);

            Clients.All.deleteCommentToPage(commentId);
        }
Ejemplo n.º 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());
        }