public async Task <IActionResult> Delete(int id) // Delete Tournament { ServiceResponse <List <GetTournamentDto> > response = await _tournamentService.DeleteTournament(id); if (response.Data == null) { return(NotFound(response)); } return(Ok(response)); }
public ActionResult Delete(int id) { _tournamentService.DeleteTournament(id); return(NoContent()); }
public ActionResult DeleteTournament(int id) { _tournamentService.DeleteTournament(id); return(RedirectToAction("TournamentManager", "Tournament")); }