public async Task <IActionResult> PostPlayersToMatch(int id, [FromBody] AddPlayersIdToMatch players) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _matchService.AddPlayersToMatch(id, players.playerListId); return(Created($"/Match/GetMatch/{id}", null)); }