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