public async Task <IActionResult> PostMatch([FromBody] CreateMatch match, int userId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } int matchId = await _matchService.CreateAsyncMatch(match, userId); return(Created($"/Match/GetMatch/{matchId}", matchId)); }