public Task <Issue> RemoveAssignees(string owner, string name, int number, AssigneesUpdate assignees) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(assignees, nameof(assignees)); return(ApiConnection.Delete <Issue>(ApiUrls.IssueAssignees(owner, name, number), assignees)); }
/// <summary> /// Add assignees to a specified Issue. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="number">The issue number</param> /// <param name="assignees">List of names of assignees to add</param> /// <returns></returns> public Task <Issue> AddAssignees(string owner, string name, int number, AssigneesUpdate assignees) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(assignees, "assignees"); return(ApiConnection.Post <Issue>(ApiUrls.IssueAssignees(owner, name, number), assignees)); }