Modification Zarghatt

This commit is contained in:
2019-03-14 01:31:56 +01:00
parent ad07674711
commit 30ec8ae90b
9 changed files with 76 additions and 27 deletions

View File

@@ -149,9 +149,15 @@ namespace LaDOSE.DesktopApp.Services
return restResponse.Data;
}
public GameDTO UpdateGame(GameDTO eventUpdate)
public GameDTO UpdateGame(GameDTO game)
{
return Post("Api/Game", eventUpdate);
return Post("Api/Game", game);
}
public bool DeleteGame(int gameId)
{
var restRequest = new RestRequest($"/api/Game/{gameId}", Method.DELETE);
var restResponse = Client.Execute(restRequest);
return restResponse.IsSuccessful;
}
#endregion