/// <summary> /// Adds comment to current post /// </summary> /// <param name="comment">Comment's text</param> /// <returns>Request result</returns> /// <exception cref="LinkedInInvalidOperationException">Thrown when user attempts to add comment to the post which is not marked as available for this action</exception> public LinkedInResponse <bool> Comment(string comment) { if (!AvailableAction[LinkedInGroupPostAction.AddComment]) { throw new LinkedInInvalidOperationException("Adding comments is not available for current post"); } return(RequestRunner.CommentPost(Id, comment)); }