lucidiot/HabitSharp
lucidiot
/
HabitSharp
Archived
1
0
Fork 0

Let the Tag deletion actually delete

This commit is contained in:
Lucidiot 2018-11-10 19:18:38 +01:00
parent f15d1864c2
commit bf306c53e7
No known key found for this signature in database
GPG Key ID: AE3F7205692FA205
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ namespace HabitSharp.Managers {
public Result<Object> Delete(Tag t) => this.Delete(t.Id);
public Result<Object> Delete(Guid id) => this.Delete(id.ToString());
public Result<Object> Delete(string id) {
var req = new RestRequest("tags/{tagId}");
var req = new RestRequest("tags/{tagId}", Method.DELETE);
req.AddUrlSegment("tagId", id);
return this.Client.Execute<Result<Object>>(req);
}