public async Task <ActionResult> AddItemToInventory([FromBody] Item item, int playerId) { var player = await _playerService.GetPlayerById(playerId); var result = await _playerService.AddInventory(player, item); if (!result) { return(BadRequest()); } return(Ok()); }