Ejemplo n.º 1
0
        /// <summary>
        /// Remove the first comment
        /// </summary>
        /// <param name="teamProjectName"></param>
        /// <param name="workItemID"></param>
        private static void RemoveFirstComment(string teamProjectName, int workItemID)
        {
            CommentList comments = WitClient.GetCommentsAsync(teamProjectName, workItemID).Result;

            WitClient.DeleteCommentAsync(teamProjectName, workItemID, comments.Comments.ElementAt(comments.Count - 1).Id).Wait();
        }