常用方法
常用方法
常用方法
常用方法
public async Task<IActionResult> AddTournament([FromBody] Tournament tournament) { try { tournament = await _organizerService.AddTournamentAsync(tournament, User.Identity.Name); return Ok(tournament); } catch(Exception ex) { return BadRequest(ex.Message); } }