示例#1
0
        public async Task <IActionResult> CommentOn(MusicComment comment)
        {
            var commentOnResult = manager.CommentOn(comment).Result;

            if (commentOnResult.Result)
            {
                await hubContext.Clients.All.SendAsync(CommentOnMusic, commentOnResult);
            }
            return(StatusCode(200, commentOnResult));
        }