Update game
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 50s

This commit is contained in:
Maxime Adler
2025-05-12 16:25:28 +02:00
parent 14dc1928bc
commit 5d30c2353e
14 changed files with 135 additions and 23 deletions

View File

@@ -88,4 +88,16 @@ public class GameGateway(IHttpClientService httpClientService) : IGameGateway
throw new GameDeletionException(ResourcesKey.ErrorDeleteGame);
}
}
public async Task<int> UpdateGame(GameDetailDto gameDto)
{
try
{
return await httpClientService.PutAsync<int>(Endpoints.Game.Update, gameDto);
}
catch (Exception)
{
throw new GameUpdateException(ResourcesKey.ErrorUpdateGame);
}
}
}