From b5f9b0d2c19bee992bb5bf132ec1ac77d664fd33 Mon Sep 17 00:00:00 2001 From: Roman Shchekin Date: Fri, 19 Aug 2016 14:29:54 +0300 Subject: [PATCH] BugFix - wrong argument order. --- src/TeamCitySharp/ActionTypes/Projects.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TeamCitySharp/ActionTypes/Projects.cs b/src/TeamCitySharp/ActionTypes/Projects.cs index d19ec642..11038b07 100644 --- a/src/TeamCitySharp/ActionTypes/Projects.cs +++ b/src/TeamCitySharp/ActionTypes/Projects.cs @@ -50,14 +50,14 @@ public void Delete(string projectName) _caller.DeleteFormat("/app/rest/projects/name:{0}", projectName); } - public void DeleteProjectParameter(string projectName, string parameterName) + public void DeleteProjectParameter(string projectIdOrName, string parameterName) { - _caller.DeleteFormat("/app/rest/projects/name:{0}/parameters/{1}", projectName, parameterName); + _caller.DeleteFormat("/app/rest/projects/name:{0}/parameters/{1}", projectIdOrName, parameterName); } - public void SetProjectParameter(string projectName, string settingName, string settingValue) + public void SetProjectParameter(string projectIdOrName, string settingName, string settingValue) { - _caller.PutFormat(settingValue, "/app/rest/projects/name:{0}/parameters/{1}", projectName, settingName); + _caller.PutFormat(settingValue, "text/plain", "/app/rest/projects/{0}/parameters/{1}", projectIdOrName, settingName); } } } \ No newline at end of file