public async Task Delete(int commentId) { await CommentaryManager.DeleteComment(commentId); Clients.All.deleteCommentToPage(commentId); }
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()); }