private Object SaveCommentLike(int commentId, string user) { var postService = new PostService(null); var item = postService.GetCommentById(commentId); var liked = new CommentLikes { Id = 0, CommentId = item.Id, UserId = user, }; postService.AddCommentLike(liked); var comment = postService.GetCommentById(commentId); var anom = new { id = comment.Id, count = comment.Likes.Count(), type = false }; return(anom); }