public async Task <ActionResult <bool> > UpsertPlayer(Player player) { if (await _playerManager.AddOrUpdatePlayerAsync(player)) { return(Ok(true)); } else { return(new StatusCodeResult(StatusCodes.Status500InternalServerError));; } }