diff --git a/src/redmine-net-api/Extensions/RedmineManagerExtensions.cs b/src/redmine-net-api/Extensions/RedmineManagerExtensions.cs index e62f61a0..5a1cbfce 100644 --- a/src/redmine-net-api/Extensions/RedmineManagerExtensions.cs +++ b/src/redmine-net-api/Extensions/RedmineManagerExtensions.cs @@ -60,5 +60,15 @@ public static News AddProjectNews(this RedmineManager redmineManager, string pro return WebApiHelper.ExecuteUpload(redmineManager, Uri.EscapeUriString($"{redmineManager.Host}/project/{projectIdentifier}/news.{redmineManager.Format}"), HttpVerbs.POST, data); } + + public static PagedResults GetProjectMemberships(this RedmineManager redmineManager, string projectIdentifier, NameValueCollection nameValueCollection) + { + if (projectIdentifier.IsNullOrWhiteSpace()) + { + throw new RedmineException($"Argument '{nameof(projectIdentifier)}' is null"); + } + + return WebApiHelper.ExecuteDownloadList(redmineManager, Uri.EscapeUriString($"{redmineManager.Host}/project/{projectIdentifier}/memberships.{redmineManager.Format}"), nameValueCollection); + } } } \ No newline at end of file