Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

BugFix - wrong argument order. #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/TeamCitySharp/ActionTypes/Projects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}