public ActionResult <Tournament> Delete(int id) { try { Match match = _matchService.GetMatchById(id); return(Ok(_matchService.DeleteMatch(match))); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public async Task <IActionResult> DeleteMatch(int id) { return(Ok(await _service.DeleteMatch(id))); }
public async Task <IActionResult> Delete([FromRoute] string matchId) { var match = await _matchService.DeleteMatch(matchId); return(Json(match)); }