コード例 #1
0
        public void DisLike(int idPost)
        {
            PostsController post          = new PostsController();
            var             currentUserId = Context.User.Identity.GetUserId();

            post.DeleteLike(idPost, currentUserId);
            Clients.Client(Context.ConnectionId).notLike(idPost);
            Clients.Group("online").DisLike(idPost);
            //Clients.All.DisLike(idPost);
        }