Update game
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 50s
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 50s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user