public async Task <IActionResult> DeleteTournament(int tournamentId) { var userId = accountService.GetUserId(); if (await service.DeleteTournamentById(tournamentId, userId)) { return(Ok(tournamentId)); } else { return(BadRequest()); } }