public async Task <IActionResult> DeletePlayersInMatch(int id, [FromBody] DeletePlayersIdFromMatch players) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _matchService.DeletePlayersInMatch(id, players.playerListId); return(NoContent()); }